Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<div style="text-align: center;">\
<p class="double">\
<br>CRYPT SHYFTER
LEGEND OF AZMAR<br>
by kung fu space barbarian<br>
</p>\
[[Start|CharCreater]]
[[Hints & Tips]]
</div>\
<<set $hp = 50>>\
<<set $kungsyours = "Kung Fu Space Barbarian's">>\
<<set $maxHP = 50>>\
<<set $atk = 1>>\
<<set $sword = 0>>\
<<set $gold = 10>>\
<<set $pizza = 0>>\
<<set $inventory= []>>\
<<set $quests= []>>\
<<set $inventory.push("Mysterious Talisman")>>\
<<set $quests.push("No quests yet")>>\
<<set $weap = "Soup Ladle">>\
<<set $armor = "Dirty Rags">>\
<<set $shield = "Trash can lid">>\
<<set $helmet = "Rusty Pot">>\
<<set $atkpwr = $atk + $sword>>\
<<set $Shyfters = 0>>\
<<set $woodenstake = 0>>\
<<set $sd = 0>>\
<<set $arm = 0>>\
<<set $helm = 0>>\
<<set $basedef = 1>>\
<<set $def = $basedef + $arm + $helm + $sd>>\
<<set $level = 1>>\
<<set $xp = 0>>\
<<set $longstick = 0>>\
<<set $lvldmg = 1>>\
<<set $levelcap = 25>>\
<<set $cyclops = 1>>\
<<set $monsters = 0>>\
<<set $mp = 1>>\
<<set $maxmp = 1>>\
<<set $potion = 0>>\
<<set $hisyours = "KFSB's">>\
<<set $elfquest = 0>>\
<<set $stats = 5>>\
<<set $abilitypoints = 0>>\
<<set $magidoo = 0>>\
<<set $ruins = 0>>\
<<set $dungeonsopen = 0>>\
<<set $mountains = 0>>\
<<set $dwarfking = 0>>\
<<set $chalice = 0>>\
<<set $treasurecave = 0>>\
<<set $kingscrypts = 0>>\
<<set $rotcat = 1>>\
<<set $skagg = 1>>\
<<set $snaggletooth = 1>>\
<<set $vortex = 1>>\
<<set $lordhawk = 1>>\
<<set $kaldaris = 1>>\
<<set $craftmats = 0>>\
<<set $header = 1>>\<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
You’re just in time! Listen, I’m gonna be out of town for a few days, so I’m counting on you to fill in for me as “hero” while I’m gone.<br>
[[Continue|nexts]]
</div>\
<<set $powerslash = 0>>\
<<set $heal = 0>>\
<<set $teleport = 0>>\
<<set $multismash = 0>>\
<<set $megaheal = 0>>\
<<set $fireball = 0>>\
<<set $fullheal = 0>>\
<<set $frostfire = 0>>\HP: $hp/$maxHP
<<display 'hpbar'>>
MP: $mp/$maxmp
<<display 'mpbar'>>
Level: $level<br>
ATTACK: $atkpwr
DEFENSE: $def<br>
Gold: $gold
Pizza: $pizza
Potion: $potion<br>CONGRATULATIONS!<br>
You have reached the end of CRYPT SHYFTER: LEGEND OF AZMAR.<<run UI.restart()>>\
[[Restart|restart][state.restart()]]<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
Don’t worry, you’ll be great! Just take these skill points and scatter them around wherever you like. I think I left a couple of Level 1 items in my closet as well. Take whatever you want.<br>
[[Continue|regard]]
</div>\<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
Aw, hey now, wipe those tears away, hero! I’ll be back before you know it. Just don’t go traipsing off on any cliche JRPG adventures without me! Sayonara!<br>
[[Continue|regard5]]
</div>\
<<set $quests.delete("No quests yet")>>\
<<set $quests.push("Kill the cyclops")>>\<div style="text-align: center;">\
Location: Irongate
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
You are standing in the middle of the city. Where do you want to go?<br>
<<if $hisyours == "KFSB's">>\
[[KFSB's castle|Magic shop]]
<<else>>\
[[Your castle|Magic shop]]
<</if>>\
[[Blacksmith|Buy weapons and armor]]
[[Marketplace|Buy items]]
[[Tavern|Rest at the inn]]
[[Leave town]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\<div style="text-align: center;">\
Gold: $gold
What do you want to buy?<br>
<table style="width:100%">
<tr>
<th>Item</th>
<th>Attribute</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Long stick|A long stick (???) - 25 gold]]</td>
<td>???</td>
<td>25</td>
</tr>
<tr>
<td>[[Potion|Potion (restore 50 HP) - 10 gold]]</td>
<td>Restore 100 HP</td>
<td>50</td>
</tr>
<tr>
<td>[[Holy Amulet|A holy amulet (+5 HP) - 60 gold]]</td>
<td>+5 HP</td>
<td>60</td>
</tr>
<tr>
<td>[[Lucky charm|A lucky charm (+3 defense) - 95 gold]]</td>
<td>+3 defense</td>
<td>95</td>
</tr>
<tr>
<td>[[Strength ring|A strength ring (+5 attack) - 100 gold]]</td>
<td>+5 attack</td>
<td>100</td>
</tr>
</table>
[[Leave|maintown]]
</div>\<div style="text-align: center;">\
Who do you want to talk to?<br>
<<if $hisyours == "KFSB's">>\
[[Gambler]]
<</if>>\
[[Old man]]
[[Pretty girl]]
[[Little kid]]
[[Baker]]
[[Scholar]]<br>
[[Back|Rest at the inn]]
</div>\<div style="text-align: center;">\
Location: Wasteland
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
You are standing in the desert outside of Irongate. What do you want to do?<br>
[[Fight monsters]]
[[Head to the Oddwood|Head to the forest]]
[[Return to Irongate|maintown]]
<<if $treasurecave gte 1>>\
[[Search for the secret treasure cave]]
<</if>>\
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\
<<set $state = 1>>\
<<set $monsters = 0>>\<div style="text-align: center;">\
<<if $gold gte 5>>\
<<set $gold -= 5>>\
<<set $weap = "Wooden Stick">>\
<<set $sword = 2>>\
<<set $atkpwr = $sword + $atk>>\
You bought a wooden stick!<br>
Attack power: $atkpwr<br>
[[Continue|Buy weapons and armor]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 2>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]<br>
<br>
<<else>>\
A wooden stick will increase your sword damage:
$sword → 2
Buy a wooden stick for 5 gold?<br>
[[Buy|buystick]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 4>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
A shovel will increase your sword damage:
$sword → 4
Buy a shovel for 9 gold?<br>
[[Buy|buysshovel]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 5>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
A pitchfork will increase your sword damage:
$sword → 5
Buy a pitchfork for 15 gold?<br>
[[Buy|buypitch]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 9>>\
<<set $gold -= 9>>\
<<set $weap = "Shovel">>\
<<set $sword = 4>>\
<<set $atkpwr = $sword + $atk>>\
You bought a shovel! Attack power: $atkpwr<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 15>>\
<<set $gold -= 15>>\
<<set $weap = "Pitchfork">>\
<<set $sword = 5>>\
<<set $atkpwr = $sword + $atk>>\
You bought a pitchfork! Attack power: $atkpwr<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sd gte 3>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
A wooden shield will increase your shield defense:
$sd → 3
Buy a wooden shield for 40 gold?<br>
[[Buy|buytrash]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm gte 2>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
A wooden hat will increase your helmet defense:
$helm → 2
Buy a wooden hat for 15 gold?<br>
[[Buy|buywoodhat]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 3>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
A leather vest will increase your armor:
$arm → 3
Buy a leather vest for 21 gold?<br>
[[Buy|buyleathervest]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm gte 4>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
An iron helm will increase your helmet defense:
$helm → 4
Buy an iron helm for 35 gold?<br>
[[Buy|buyrustylhelm]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 5>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
An iron suit will increase your armor:
$arm → 5
Buy an iron suit for 60 gold?<br>
[[Buy|buyrustysuita]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 8>>\
This item is useless to you!<br>
[[Back|Buy weapons and armor]]
<<else>>\
A bone dagger will increase your sword damage:
$sword → 8
Buy a bone dagger for 23 gold?<br>
[[Buy|buysrustyironsword]]
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 23>>\
<<set $gold -= 23>>\
<<set $weap = "Bone Dagger">>\
<<set $sword = 8>>\
<<set $atkpwr = $sword + $atk>>\
You bought a bone dagger! Attack power: $atkpwr<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 15>>\
<<set $gold -= 15>>\
<<set $helmet = "Wooden Hat">>\
<<set $helm = 2>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a wooden hat! Total defense: $def<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 21>>\
<<set $gold -= 21>>\
<<set $armor = "Leather Vest">>\
<<set $arm = 3>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a leather vest! Total defense: $def<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 40>>\
<<set $gold -= 40>>\
<<set $shield = "Wooden Shield">>\
<<set $sd = 3>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a wooden shield! Total defense: $def<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 35>>\
<<set $gold -= 35>>\
<<set $helmet = "Iron Helm">>\
<<set $helm = 4>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought an iron helm! Total defense: $def<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 60>>\
<<set $gold -= 60>>\
<<set $armor = "Iron Suit">>\
<<set $arm = 5>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought an iron suit! Total defense: $def<br>
[[Continue|Buy weapons and armor]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Buy weapons and armor]]
<</if>>\
</div>\<<if $cyclops == 0>>\
<div style="text-align: center;">\
Location: Oddwood
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
The Oddwood is home to lots of scary monsters, but the elves also live here. What do you want to do?<br>
[[Fight monsters]]
[[Visit the elves]]
[[Return to the desert|Leave town]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
<<set $state = 3>>\
</div>\
<<else>>\
<<set $state = 2>>\
<div style="text-align: center;">\
You make your way to the Oddwood when suddenly an enraged cyclops attacks!<br>
[[Fight it|startfight]]
<<if $longstick gte 1>>\
[[Poke its eye with the long stick]]
<</if>>\
[[Run away|Leave town]]
<<set $ehp = 250>>\
<<set $earm = random(15,20)>>\
<<set $eatk = 10 + $lvldmg>>\
<<set $monsters += 1>>\
<<set $maxehp = $ehp>>\
<<set $xpgain = random(20,50) * $level>>\
<<set $treasure = random(30,50) * $level>>\
</div>\
<</if>>\<div style="text-align: center;">\
<<display 'battlescreen'>>
[[Attack|acke]]
[[Magic]]
[[Items|Items]]
<<link 'Run away' `either('Run away', 'failrun')`>><</link>>
</div>\<div style="text-align: center;">\
<<set $earm = random(0,2) * $level>>\
<<set $dmg = $atkpwr - $earm>>\
<<if $dmg lte 0>>\
<<display 'battlescreen'>>
Your attack deals 0 damage!<br>
[[Continue|EnemyTurne]]
<<else>>\
<<set $ehp -= $dmg>>\
<<if $ehp lte 0>>\
<<set $ehp = 0>>\
<<display 'battlescreen'>>
Your attack deals $dmg damage! You are victorious!<br>
[[Continue|endfightt]]
<<else>>\
<<display 'battlescreen'>>
Your attack deals $dmg damage!<br>
[[Continue|EnemyTurne]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<set $pizza -= 1>>\
<<set $hp += 50>>\
<<if $hp gte $maxHP>>\
<<set $hp = $maxHP>>\
<</if>>\
<<display 'battlescreen'>>
Yum! Gained 50 hit points.<br>
[[Continue|EnemyTurne]]
</div>\<div style="text-align: center;">\
You run away from the fight!<br>
[[Continue|maintown]]
</div>\
<<set $monsters = 0>>\<div style="text-align: center;">\
<<set $monsters += 1>>\
<<set $gold += $treasure>>\
<<set $xp = $xp + $xpgain>>\
<<if $xp gte $levelcap>>\
<<set $levelcap = $levelcap *= 3>>\
<<set $level += 1>>\
<<set $hp += 5>>\
<<set $maxHP += 5>>\
<<set $stats += 3>>\
<<set $magidoo += 1>>\
<<set $lvldmg = $lvldmg + 1 * $level>>\
You gained $xpgain XP.
You reached LEVEL $level!
+5 HP
You gained 3 stat points!
<<if $magidoo gte 2>>\
<<set $magidoo = 0>>\
<<set $abilitypoints += 1>>\
You earned a new ability point!
<</if>>\
You found $treasure gold coins!<br>
[[Continue|Fight monsters]]<br>
<<else>>\
You gained $xpgain XP. You found $treasure gold coins!<br>
[[Continue|Fight monsters]]<br>
<br>
<</if>>\
</div>\
<<set $ps = 0>>\<div style="text-align: center;">\
<<set $atkdmg = random(2,8) + $eatk + $level - $def>>\
<<if $atkdmg lte 0>>\
<<display 'battlescreen'>>
You take 0 damage!<br>
[[Continue|hacktisi]]
<<else>>\
<<set $hp -= $atkdmg>>\
<<if $hp lte 0>>\
<<set $hp = 0>>\
<<display 'battlescreen'>>
You take $atkdmg damage! You have run out of hit points. You are dead!<br>
[[Continue|nextdie]]
<<else>>\
<<display 'battlescreen'>>
You take $atkdmg damage!<br>
[[Continue|hacktisi]]
<</if>>\
<</if>>\
</div>\
<<set $ps = 0>>\<div style="text-align: center;">\
<<set $hp = $maxHP>>\
<<set $mp = $maxmp>>\
<<set $gold to Math.round($gold/2)>>\
<<set $lostgold to Math.round($gold/2)>>\
You wake up at $hisyours castle. It seems as though the gods are not finished with you yet.<br>
[[Continue|maintown]]
</div>\
<<set $monsters = 0>>\<div style="text-align: center;">\
<<display 'battlescreen'>>
[[Attack|acke]]
[[Magic]]
[[Items|Items]]
<<link 'Run away' `either('Run away', 'failrun')`>><</link>>
</div>\
<<set $ps = 0>>\<div style="text-align: center;">\
Welcome to the tavern. You can spend the night for 12 gold coins. What would you like to do?<br>
[[Rest|Yes]]
[[Eat]]
[[Gossip]]
[[Leave|maintown]]
</div>\<<if $gold gte 12>>\
<<set $gold -= 12>>\
<<set $hp = $maxHP>>\
<<set $mp = $maxmp>>\
<div style="text-align: center;">\
You spend the night at the inn. HP and MP restored!<br>
[[Continue|Rest at the inn]]<br>
<br>
</div>\
<<else>>\
<div style="text-align: center;">\
You don't have enough gold!<br>
[[Continue|Rest at the inn]]<br>
<br>
</div>\
<</if>>\<div style="text-align: center;">\
You poke the cyclops in the eye with the long stick. The beast is now blind! Its HP has been significantly reduced!<br>
[[Continue|startfight]]
</div>\
<<set $ehp -= 120>>\<div style="text-align: center;">\
Location: Oddwood
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
The Oddwood is home to lots of scary monsters, but the elves also live here. What do you want to do?<br>
[[Fight monsters]]
[[Visit the elves]]
[[Return to the desert|Leave town]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\
<<set $cyclops = 0>>\
<<set $state = 3>>\<div style="text-align: center;">\
<<if $gold gte 5>>\
<<set $gold -= 5>>\
<<set $pizza += 1>>\
You bought a slice of pizza!<br>
[[Continue|Rest at the inn]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Rest at the inn]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Long stick") gte 0>>\
You already have one of those!<br>
[[Continue|Buy items]]
<<else>>\
<<if $gold gte 25>>\
<<set $gold -= 25>>\
<<set $longstick += 1>>\
<<set $inventory.push("Long stick")>>\
You buy a long stick! How silly.<br>
[[Continue|Buy items]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Buy items]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Lucky charm") gte 0>>\
You already have one of those!<br>
[[Continue|Buy items]]
<<else>>\
<<if $gold gte 95>>\
<<set $gold -= 95>>\
<<set $basedef += 3>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $inventory.push("Lucky charm")>>\
You buy a lucky charm. Defense increased by 3!<br>
[[Continue|Buy items]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Buy items]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Strength ring") gte 0>>\
You already have one of those!<br>
[[Continue|Buy items]]
<<else>>\
<<if $gold gte 100>>\
<<set $gold -= 100>>\
<<set $atk += 5>>\
<<set $atkpwr = $sword + $atk>>\
<<set $inventory.push("Strength ring")>>\
You buy a strength ring. Attack power increased by 5!<br>
[[Continue|Buy items]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Buy items]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Holy Amulet") gte 0>>\
You already have one of those!<br>
[[Continue|Buy items]]
<<else>>\
<<if $gold gte 60>>\
<<set $gold -= 60>>\
<<set $hp += 5>>\
<<set $maxHP += 5>>\
<<set $inventory.push("Holy Amulet")>>\
You buy a holy amulet. Max HP increased by 5!<br>
[[Continue|Buy items]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Buy items]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
Location: Red Hawk Village
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
You are standing in the elf village. Where do you want to go?<br>
[[Blacksmith|elfwaps]]
[[Marketplace|elfitems]]
[[Tavern|elfin]]
[[Elf castle|Speak to the elf queen]]
[[Return to the Oddwood|intotheforest]]
<<if $ruins gte 1>>\
[[Hidden ruins|Go to the hidden ruins]]
<</if>>\
<<if $mountains gte 1>>\
[[Travel to the dwarf mountains]]
<</if>>\
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\<div style="text-align: center;">\
Gold: $gold
What do you want to buy?<br>
<table style="width:100%">
<tr>
<th>Swords</th>
<th>Attack</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Wooden stick|Wooden stick (5 gold)]]</td>
<td>$sword → 2</td>
<td>5</td>
</tr>
<tr>
<td>[[Shovel|Shovel (9 gold)]]</td>
<td>$sword → 4</td>
<td>9</td>
</tr>
<tr>
<td>[[Pitchfork|Pitchfork (15 gold)]]</td>
<td>$sword → 5</td>
<td>15</td>
</tr>
<tr>
<td>[[Bone dagger|Bone dagger (23 gold)]]</td>
<td>$sword → 8</td>
<td>23</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Shields</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Wooden shield|Wooden shield (40 gold)]]</td>
<td>$sd → 3</td>
<td>40</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Armor</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Leather vest|Leather vest (21 gold)]]</td>
<td>$arm → 3</td>
<td>21</td>
</tr>
<tr>
<td>[[Iron suit|Iron suit (60 gold)]]</td>
<td>$arm → 5</td>
<td>60</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Helmets</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Wooden hat|Wooden hat (15 gold)]]</td>
<td>$helm → 2</td>
<td>15</td>
</tr>
<tr>
<td>[[Iron helm|Iron helm (35 gold)]]</td>
<td>$helm → 4</td>
<td>35</td>
</tr>
</table>
[[Exit shop|maintown]]
</div>\<div style="text-align: center;">\
A stinky rat attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 3 + random(1,20)>>\
<<set $eatk = random(1,8)>>\
<<set $maxehp = $ehp>>\
<<set $xpgain = random(10,20) * $level>>\
<<set $treasure = random(5,12) * $level>>\
</div>\<div style="text-align: center;">\
A deadly cobra attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 3 + random(1,20)>>\
<<set $eatk = random(3,14)>>\
<<set $maxehp = $ehp>>\
<<set $xpgain = random(10,20) * $level>>\
<<set $treasure = random(5,12) * $level>>\
</div>\<div style="text-align: center;">\
An enormous scorpion attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 3 + random(1,20)>>\
<<set $eatk = random(4,14)>>\
<<set $maxehp = $ehp>>\
<<set $xpgain = random(10,20) * $level>>\
<<set $treasure = random(5,12) * $level>>\
</div>\<div style="text-align: center;">\
A giant termite attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 3 + random(1,20)>>\
<<set $eatk = random(2,9)>>\
<<set $maxehp = $ehp>>\
<<set $xpgain = random(10,20) * $level>>\
<<set $treasure = random(5,12) * $level>>\
</div>\<div style="text-align: center;">\
A humungous crab attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 3 + random(1,20)>>\
<<set $eatk = random(1,10)>>\
<<set $maxehp = $ehp>>\
<<set $xpgain = random(10,20) * $level>>\
<<set $treasure = random(5,12) * $level>>\
</div>\<div style="text-align: center;">\
<u>STATS</u><br>
Level: $level
XP: $xp<br>
HP: $hp/$maxHP
MP: $mp/$maxmp<br>
ATTACK: $atkpwr
DEFENSE: $def <br>
<<back "Back">>
</div>\<div style="text-align: center;">\
<u>GEAR</u><br>
Gold: $gold
Pizza: $pizza
Potion: $potion<br>
Sword: $weap (+$sword)
Shield: $shield (+$sd)
Armor: $armor (+$arm)
Helmet: $helmet (+$helm)<br>
[[More|gear2]]
<<back "Back">>
</div>\<div style="text-align: center;">\
<u>QUESTS</u><br>
<<print $quests.join("\n")>><br>
<<back "Back">>
</div>\<div style="text-align: center;">\
<u>MAIN MENU</u><br>
[[Character]]
[[Spells|spells]]
[[Gear]]
[[Quests]]
<<back "Back">>
</div>\<div style="text-align: center;">\
<<set $treasure = random(9,25) * $level>>\
<<set $gold += $treasure>>\
You found $treasure gold coins!<br>
[[Continue|Fight monsters]]
</div>\
<<set $monsters += 1>>\<div style="text-align: center;">\
You found a treasure chest! Open it?<br>
<<link 'Yes' `either('woot', 'mimic')`>><</link>>
[[No|Fight monsters]]
</div>\<div style="text-align: center;">\
Oh no! The treasure chest is a mimic! The mimic attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 3 + random(1,20)>>\
<<set $eatk = random(1,20)>>\
<<set $maxehp = $ehp>>\
<<set $xpgain = random(10,20) * $level>>\
<<set $treasure = random(10,15) * $level>>\
</div>\<div style="text-align: center;">\
<<if $monsters == 0>>\
You are about to engage in 5 random encounters. If you are killed, you'll return to $hisyours castle and lose half of your gold. Win all 5 battles to receive a bonus reward!<br>
[[Continue|CheckStartState]]
<<elseif $monsters == 5>>\
<<set $monsters -= 5>>\
You have defeated 5 monsters in a row! You earned a bonus treasure!<br>
<<link 'Claim reward' `either('wingold','winmp','winpotion','winpizza','winHP')`>><</link>>
<<else>>\
<<goto 'CheckStartState'>>\
<</if>>\
</div>\<div style="text-align: center;">\
An evil bat attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 20 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(15,25)>>\
<<set $xpgain = random(40,70) * $level>>\
<<set $treasure = random(20,25) * $level>>\
</div>\<div style="text-align: center;">\
A floating eye attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 20 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(15,25)>>\
<<set $xpgain = random(40,70) * $level>>\
<<set $treasure = random(20,25) * $level>>\
</div>\<div style="text-align: center;">\
An enraged minotaur attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 20 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(15,25)>>\
<<set $xpgain = random(40,70) * $level>>\
<<set $treasure = random(20,25) * $level>>\
</div>\<div style="text-align: center;">\
A shambling mound attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 20 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(15,25)>>\
<<set $xpgain = random(40,70) * $level>>\
<<set $treasure = random(20,25) * $level>>\
</div>\<div style="text-align: center;">\
A wyvern attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 20 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(15,25)>>\
<<set $xpgain = random(40,70) * $level>>\
<<set $treasure = random(20,25) * $level>>\
</div>\<div style="text-align: center;">\
An evil tree attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 20 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(15,40)>>\
<<set $xpgain = random(40,70) * $level>>\
<<set $treasure = random(20,25) * $level>>\
</div>\<div style="text-align: center;">\
<u>Magic</u><br>
<<if $heal gte 1>>\
[[Heal - 1MP]]
<</if>>\
<<if $powerslash gte 1>>\
[[Power Slash - 2MP]]
<</if>>\
<<if $megaheal gte 1>>\
[[Mega Heal - 4MP]]
<</if>>\
<<if $teleport gte 1>>\
[[Teleport - 5MP]]
<</if>>\
<<if $multismash gte 1>>\
[[Multi Smash - 8MP]]
<</if>>\
<<if $fullheal gte 1>>\
[[Full Heal - 9MP]]
<</if>>\
<<if $fireball gte 1>>\
[[Fireball - 12MP]]
<</if>>\
<<if $frostfire gte 1>>\
[[Frostfire - 20MP]]
<</if>><br>
[[Back|hacktisi]]
</div>\<div style="text-align: center;">\
<u>Items</u><br>
<<if $pizza gte 1>>\
[[Eat pizza (restore 50 HP)|pizzae]]
<</if>>\
<<if $potion gte 1>>\
[[Drink potion (restore 100 HP)|Drink potion]]
<</if>><br>
<<back "Back">>
</div>\<div style="text-align: center;">\
<<set $potion -= 1>>\
<<set $hp += 100>>\
<<if $hp gte $maxHP>>\
<<set $hp = $maxHP>>\
<</if>>\
<<display 'battlescreen'>>
You drank a potion! Gained 100 hit points.<br>
[[Continue|EnemyTurne]]
</div>\<div style="text-align: center;">\
<<if $mp gte 2>>\
<<set $mp -= 2>>\
<<set $ps = $atkpwr * 2>>\
<<set $ehp -= $ps>>\
<<if $ehp lte 0>>\
<<set $ehp = 0>>\
<<display 'battlescreen'>>
You used Power Slash - it deals $ps damage! You are victorious!<br>
[[Continue|endfightt]]
<<else>>\
<<display 'battlescreen'>>
You used Power Slash - it deals $ps damage!<br>
[[Continue|EnemyTurne]]
<</if>>\
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $mp gte 1>>\
<<set $mp -= 1>>\
<<set $hp += 50>>\
<<if $hp gte $maxHP>>\
<<set $hp = $maxHP>>\
<</if>>\
<<display 'battlescreen'>>
You cast Heal! Restored 50 HP.<br>
[[Continue|EnemyTurne]]
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $mp gte 5>>\
<<set $mp -= 5>>\
<<set $monsters = 0>>\
You cast teleport! You warp back to $hisyours castle.<br>
[[Continue|maintown]]
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $mp gte 12>>\
<<set $mp -= 12>>\
<<set $ps = $atkpwr * 10>>\
<<set $ehp -= $ps>>\
<<if $ehp lte 0>>\
<<set $ehp = 0>>\
<<display 'battlescreen'>>
You cast a Fireball - it deals $ps damage! You are victorious!<br>
[[Continue|endfightt]]
<<else>>\
<<display 'battlescreen'>>
You cast a Fireball - it deals $ps damage!<br>
[[Continue|EnemyTurne]]
<</if>>\
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $mp gte 9>>\
<<set $mp -= 9>>\
<<set $hp = $maxHP>>\
<<display 'battlescreen'>>
You cast Full Heal! HP restored.<br>
[[Continue|EnemyTurne]]
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $mp gte 20>>\
<<set $mp -= 20>>\
<<set $ps = $atkpwr * 20>>\
<<set $ehp -= $ps>>\
<<if $ehp lte 0>>\
<<set $ehp = 0>>\
<<display 'battlescreen'>>
You cast Frostfire - it deals $ps damage! You are victorious!<br>
[[Continue|endfightt]]
<<else>>\
<<display 'battlescreen'>>
You cast Frostfire - it deals $ps damage!<br>
[[Continue|EnemyTurne]]
<</if>>\
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $mp gte 8>>\
<<set $mp -= 8>>\
<<set $ps = $atkpwr * 4>>\
<<set $ehp -= $ps>>\
<<if $ehp lte 0>>\
<<set $ehp = 0>>\
<<display 'battlescreen'>>
You used Multi Smash - it deals $ps damage! You are victorious!<br>
[[Continue|endfightt]]
<<else>>\
<<display 'battlescreen'>>
You used Multi Smash - it deals $ps damage!<br>
[[Continue|EnemyTurne]]
<</if>>\
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $mp gte 4>>\
<<set $mp -= 4>>\
<<set $hp += 100>>\
<<if $hp gte $maxHP>>\
<<set $hp = $maxHP>>\
<</if>>\
<<display 'battlescreen'>>
You cast Mega Heal! Restored 100 HP.<br>
[[Continue|EnemyTurne]]
<<else>>\
Not enough MP!<br>
[[Continue|hacktisi]]
<</if>>\
</div>\<div style="text-align: center;">\
<u>SPELLS</u><br>
<<if $powerslash gte 1>>\
<b>Power Slash:</b> Deals 2x damage
<</if>>\
<<if $heal gte 1>>\
<b>Heal:</b> Restores 50 HP
<</if>>\
<<if $teleport gte 1>>\
<b>Teleport:</b> Warp to KFSB's castle
<</if>>\
<<if $multismash gte 1>>\
<b>Multi Smash:</b> Deals 4x damage
<</if>>\
<<if $megaheal gte 1>>\
<b>Mega Heal:</b> Restores 100 HP
<</if>>\
<<if $fireball gte 1>>\
<b>Fireball:</b> Deals 10x damage
<</if>>\
<<if $fullheal gte 1>>\
<b>Full Heal:</b> Restores full HP
<</if>>\
<<if $frostfire gte 1>>\
<b>Frostfire:</b> Deals 20x damage
<</if>><br>
<<back "Back">>
</div>\<div style="text-align: center;">\
Can't escape!<br>
[[Continue|EnemyTurne]]
</div>\<<if $state == 1>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('spider', 'crab', 'rat', 'cobra', 'scorpion','goodies')`>><</link>>
</div>\
<</if>>\
<<if $state == 2>>\
<<set $quests.push("<s>Kill the cyclops</s>")>>\
<<set $quests.push("Talk to the elf queen")>>\
<<set $quests.delete("Kill the cyclops")>>\
<<goto 'intotheforest'>>\
<</if>>\
<<if $state == 3>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('eviltree', 'minotaur', 'evilbat', 'shamblingmound', 'wyvern','floatingeye','goodies')`>><</link>>
</div>\
<</if>>\
<<if $state == 4>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('djinn', 'minotaur', 'gorgon', 'gargoyle', 'wyvern','floatingeye','centaur')`>><</link>>
</div>\
<</if>>\
<<if $state == 5>>\
<<set $quests.push("<s>Kill the vampire</s>")>>\
<<set $quests.push("Return the elf queen's crown")>>\
<<set $quests.delete("Kill the vampire")>>\
<<goto 'wonthecrown'>>\
<</if>>\
<<if $state == 7>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('djinn', 'minotaur', 'gorgon', 'gargoyle', 'evildwarf','hillghoul','centaur')`>><</link>>
</div>\
<</if>>\
<<if $state == 8>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('trog','goblin','imp','evildwarf','hillghoul','ogre')`>><</link>>
</div>\
<</if>>\
<<if $state == 9>>\
<<set $quests.push("<s>Rescue the dwarf king</s>")>>\
<<set $quests.push("Find the Rune Sword")>>\
<<set $quests.delete("Rescue the dwarf king")>>\
<<goto 'savedtheking'>>\
<</if>>\
<<if $state == 10>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('trog','goblin','imp','evildwarf','hillghoul','ogre')`>><</link>>
</div>\
<</if>>\
<<if $state == 13>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('imp','evildwarf')`>><</link>>
</div>\
<</if>>\
<<if $state == 16>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('werewolf','trog','ogre')`>><</link>>
</div>\
<</if>>\
<<if $state == 666>>\
<<goto 'killedstar'>>\
<</if>>\
<<if $state == 117>>\
<<goto 'killedvortex'>>\
<</if>>\
<<if $state == 17>>\
<<goto 'killedrotcat'>>\
<</if>>\
<<if $state == 39>>\
<<goto 'killedsnag'>>\
<</if>>\
<<if $state == 20>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('werewolf','icegolem','yeti','evilslime','spectre','trog','ogre')`>><</link>>
</div>\
<</if>>\
<<if $state == 21>>\
<<goto 'killedskagg'>>\
<</if>>\
<<if $state == 99>>\
<<goto 'killedkald'>>\
<</if>>\
<<if $state == 137>>\
<<goto 'killedhawk'>>\
<</if>>\
<<if $state == 36>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('killerwasp','evilsheep','mutatedgoat','evilslime','spectre','undeaddeer')`>><</link>>
</div>\
<</if>>\
<<if $state == 86>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('dergon','hydra','wyvern','evilslime','spectre','trog','ogre')`>><</link>>
</div>\
<</if>>\
<<if $state == 116>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('dergon','hydra','zombie','evilslime','spectre','trog','shamblingcorpse')`>><</link>>
</div>\
<</if>>\
<<if $state == 806>>\
<div style="text-align: center;">\
Checking for monsters...<br>
<<link 'Continue' `either('dergon','hydra','wyvern','evilslime','spectre','trog','ogre')`>><</link>>
</div>\
<</if>>\<<if $state == 1>>\
<<goto 'Leave town'>>\
<</if>>\
<<if $state == 3>>\
<<goto 'intotheforest'>>\
<</if>>\
<<if $state == 4>>\
<<goto 'vampirefight'>>\
<</if>>\
<<if $state == 7>>\
<<goto 'Travel to the dwarf mountains'>>\
<</if>>\
<<if $state == 8>>\
<<goto 'ogrefight'>>\
<</if>>\
<<if $state == 10>>\
<<goto 'treasurecavefinal'>>\
<</if>>\
<<if $state == 13>>\
<<goto 'foundtherunesword'>>\
<</if>>\
<<if $state == 16>>\
<<goto 'facerotcat'>>\
<</if>>\
<<if $state == 20>>\
<<goto 'faceskagg'>>\
<</if>>\
<<if $state == 36>>\
<<goto 'facesnaggle'>>\
<</if>>\
<<if $state == 86>>\
<<goto 'facekald'>>\
<</if>>\
<<if $state == 116>>\
<<goto 'facehawkd'>>\
<</if>>\
<<if $state == 806>>\
<<goto 'facevortex'>>\
<</if>>\<div style="text-align: center;">\
<<if $gold gte 50>>\
<<set $gold -= 50>>\
<<set $potion += 1>>\
You bought a potion!<br>
[[Continue|Buy items]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Buy items]]
<</if>>\
</div>\<div style="text-align: center;">\
<<set $bonushp = random(5,10) * $level>>\
<<set $hp += $bonushp>>\
<<set $maxHP += $bonushp>>\
You gained +$bonushp HP!<br>
[[Continue|CheckEndState]]
</div>\<div style="text-align: center;">\
<<set $pizzawin = random(2,3)>>\
<<set $pizza += $pizzawin>>\
You found $pizzawin slices of pizza!<br>
[[Continue|CheckEndState]]
</div>\<div style="text-align: center;">\
<<set $potionwin = random(2,3)>>\
<<set $potion += $potionwin>>\
You found $potionwin bottles of potion!<br>
[[Continue|CheckEndState]]
</div>\<div style="text-align: center;">\
<<set $bonusgold = random(10,50) * $level>>\
<<set $gold += $bonusgold>>\
You found $bonusgold gold!<br>
[[Continue|CheckEndState]]
</div>\<div style="text-align: center;">\
Gold: $gold
What do you want to buy?<br>
<table style="width:100%">
<tr>
<th>Swords</th>
<th>Attack</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Iron sword|Iron sword (115 gold)]]</td>
<td>$sword → 10</td>
<td>115</td>
</tr>
<tr>
<td>[[Steel sword|Steel sword (235 gold)]]</td>
<td>$sword → 14</td>
<td>235</td>
</tr>
<tr>
<td>[[Silver sword|Silver sword (305 gold)]]</td>
<td>$sword → 18</td>
<td>500</td>
</tr>
<tr>
<td>[[Elf sword|Elf sword (500 gold)]]</td>
<td>$sword → 25</td>
<td>1200</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Shields</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Iron shield|Iron shield (90 gold)]]</td>
<td>$sd → 5</td>
<td>90</td>
</tr>
<tr>
<td>[[Steel shield|Steel shield (200 gold)]]</td>
<td>$sd → 8</td>
<td>200</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Armor</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Chain mail|Chain mail (210 gold)]]</td>
<td>$arm → 7</td>
<td>210</td>
</tr>
<tr>
<td>[[Plate armor|Plate armor (560 gold)]]</td>
<td>$arm → 13</td>
<td>560</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Helmets</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Steel helm|Steel helm (215 gold)]]</td>
<td>$helm → 6</td>
<td>215</td>
</tr>
<tr>
<td>[[Elf helm|Elf helm (375 gold)]]</td>
<td>$helm → 10</td>
<td>575</td>
</tr>
</table>
[[Exit shop|Visit the elves]]
</div>\<div style="text-align: center;">\
Gold: $gold
What do you want to buy?<br>
<table style="width:100%">
<tr>
<th>Item</th>
<th>Attribute</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Potion|elfpotion]]</td>
<td>Restore 100 HP</td>
<td>75</td>
</tr>
<tr>
<td>[[Magic Acorn]]</td>
<td>+10 HP</td>
<td>250</td>
</tr>
<tr>
<td>[[Ring of Might]]</td>
<td>+8 defense</td>
<td>300</td>
</tr>
<tr>
<td>[[Ring of Power]]</td>
<td>+10 attack</td>
<td>500</td>
</tr>
</table>
[[Leave|Visit the elves]]
</div>\<div style="text-align: center;">\
Who do you want to talk to?<br>
[[Elf kid]]
[[Elf lady]]
[[Wise elf]]
[[Dancing elf]]
[[Back|elfin]]
</div>\<div style="text-align: center;">\
Welcome to the tavern. You can spend the night for 24 gold coins. What would you like to do?<br>
[[Rest|elfslep]]
[[Eat|eat2]]
[[Gossip|elfgossip]]
[[Leave|Visit the elves]]
</div>\<div style="text-align: center;">\
<<if $elfquest == 1>>\
ELF QUEEN:
The vampire is hiding in the ruins nearby. I'll give you a great reward if you defeat him and return my stolen crown!<br>
[[Continue|Visit the elves]]
<<elseif $elfquest == 2>>\
<<set $elfquest += 1>>\
ELF QUEEN:
You defeated the vampire and brought back my crown! Please take this magic sword as a reward!<br>
[[Continue|magicsword]]
<<elseif $elfquest == 3>>\
ELF QUEEN:
Thank you again for your help. Rumor has it the darkness spreading across our land is coming from a castle in the north. You'll need to pass under the dwarf mountains to reach that place!<br>
[[Continue|Visit the elves]]
<<set $mountains += 1>>\
<<else>>\
<<set $elfquest += 1>>\
ELF QUEEN:
You came to warn us about the monsters? And you defeated the cyclops? You must be a true hero!<br>
[[Continue|elfqueen2]]
<</if>>\
</div>\<div style="text-align: center;">\
You enter the crumbling ruins. You'll need to defeat 5 monsters in a row before battling the vampire boss. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 4>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 10>>\
This item is useless to you!<br>
[[Back|elfwaps]]<br>
<br>
<<else>>\
An iron sword will increase your sword damage:
$sword → 10
Buy an iron sword for 115 gold?<br>
[[Buy|buyironsword]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 14>>\
This item is useless to you!<br>
[[Back|elfwaps]]<br>
<br>
<<else>>\
A steel sword will increase your sword damage:
$sword → 14
Buy a steel sword for 235 gold?<br>
[[Buy|buysteelsword]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 18>>\
This item is useless to you!<br>
[[Back|elfwaps]]<br>
<br>
<<else>>\
A silver sword will increase your sword damage:
$sword → 18
Buy a silver sword for 500 gold?<br>
[[Buy|buyssilversword]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 25>>\
This item is useless to you!<br>
[[Back|elfwaps]]<br>
<br>
<<else>>\
An elf sword will increase your sword damage:
$sword → 25
Buy an elf sword for 1200 gold?<br>
[[Buy|buyselfsword]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sd gte 5>>\
This item is useless to you!<br>
[[Back|elfwaps]]
<<else>>\
An iron shield will increase your shield defense:
$sd → 5
Buy an iron shield for 90 gold?<br>
[[Buy|buyironsheild]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sd gte 8>>\
This item is useless to you!<br>
[[Back|elfwaps]]
<<else>>\
A steel shield will increase your shield defense:
$sd → 8
Buy a steel shield for 200 gold?<br>
[[Buy|buysteelsheild]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 7>>\
This item is useless to you!<br>
[[Back|elfwaps]]
<<else>>\
Chain mail will increase your armor:
$arm → 7
Buy chain mail for 210 gold?<br>
[[Buy|buychainmail]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 13>>\
This item is useless to you!<br>
[[Back|elfwaps]]
<<else>>\
Plate armor will increase your armor:
$arm → 13
Buy plate armor for 560 gold?<br>
[[Buy|buyplatearm]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm gte 6>>\
This item is useless to you!<br>
[[Back|elfwaps]]
<<else>>\
A steel helm will increase your helmet defense:
$helm → 6
Buy a steel helm for 215 gold?<br>
[[Buy|buysteelhelm]]
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm gte 10>>\
This item is useless to you!<br>
[[Back|elfwaps]]
<<else>>\
An elf helm will increase your helmet defense:
$helm → 10
Buy an elf helm for 575 gold?<br>
[[Buy|buyelfhelm]]
[[Back|elfwaps]]
<</if>>\
</div>\<<if $hp == $maxHP>>\
<progress value="100" max="100">
</progress>
<<elseif ($hp gte (.75 * $maxHP)) and ($hp lte (1 * $maxHP))>>\
<progress value="75" max="100">
</progress>
<<elseif ($hp gte (.50 * $maxHP)) and ($hp lte (.75 * $maxHP))>>\
<progress value="50" max="100">
</progress>
<<elseif ($hp gte (.25 * $maxHP)) and ($hp lte (.50 * $maxHP))>>\
<progress value="25" max="100">
</progress>
<<elseif $hp lte 0>>\
<progress value="0" max="100">
</progress>
<<else>>\
<progress value="5" max="100">
</progress>
<</if>>\<<if $mp == $maxmp>>\
<progress value="100" max="100">
</progress>
<<elseif ($mp gte (.75 * $maxmp)) and ($mp lte (1 * $maxmp))>>\
<progress value="75" max="100">
</progress>
<<elseif ($mp gte (.50 * $maxmp)) and ($mp lte (.75 * $maxmp))>>\
<progress value="50" max="100">
</progress>
<<elseif ($mp gte (.25 * $maxmp)) and ($mp lte (.50 * $maxmp))>>\
<progress value="25" max="100">
</progress>
<<elseif $mp lte 0>>\
<progress value="0" max="100">
</progress>
<<else>>\
<progress value="5" max="100">
</progress>
<</if>>\<<if $ehp == $maxehp>>\
<progress value="100" max="100">
</progress>
<<elseif ($ehp gte (.75 * $maxehp)) and ($ehp lte (1 * $maxehp))>>\
<progress value="75" max="100">
</progress>
<<elseif ($ehp gte (.50 * $maxehp)) and ($ehp lte (.75 * $maxehp))>>\
<progress value="50" max="100">
</progress>
<<elseif ($ehp gte (.25 * $maxehp)) and ($ehp lte (.50 * $maxehp))>>\
<progress value="25" max="100">
</progress>
<<elseif $ehp lte 0>>\
<progress value="0" max="100">
</progress>
<<else>>\
<progress value="5" max="100">
</progress>
<</if>>\<div style="text-align: center;">\
Buy a slice of healing pizza for 5 coins?<br>
[[Yes|yespizza]]
[[No|Rest at the inn]]
</div>\<table style="width:100%">
<tr>
<td>Your HP</td>
<td><<display 'hpbar'>></td>
<td>$hp/$maxHP</td>
</tr>
<tr>
<td>Enemy HP</td>
<td><<display 'ehpbar'>></td>
<td>$ehp/$maxehp</td>
</tr>
</table><<if $gold gte 24>>\
<<set $gold -= 24>>\
<<set $hp = $maxHP>>\
<<set $mp = $maxmp>>\
<div style="text-align: center;">\
You spend the night at the inn. HP and MP restored!<br>
[[Continue|elfin]]<br>
<br>
</div>\
<<else>>\
<div style="text-align: center;">\
You don't have enough gold!<br>
[[Continue|elfin]]<br>
<br>
</div>\
<</if>>\<div style="text-align: center;">\
Buy a slice of healing pizza for 10 coins?<br>
[[Yes|yespizza2]]
<<back "No">>
</div>\<div style="text-align: center;">\
<<if $gold gte 10>>\
<<set $gold -= 10>>\
<<set $pizza += 1>>\
You bought a slice of pizza!<br>
[[Continue|elfin]]
<<else>>\
You don't have enough gold!<br>
[[Continue|elfin]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Magic Acorn") gte 0>>\
You already have one of those!<br>
[[Continue|elfitems]]
<<else>>\
<<if $gold gte 250>>\
<<set $gold -= 250>>\
<<set $hp += 10>>\
<<set $maxHP += 10>>\
<<set $inventory.push("Magic Acorn")>>\
You buy a Magic Acorn. Max HP increased by 10!<br>
[[Continue|elfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|elfitems]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Ring of Might") gte 0>>\
You already have one of those!<br>
[[Continue|elfitems]]
<<else>>\
<<if $gold gte 300>>\
<<set $gold -= 300>>\
<<set $basedef += 8>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $inventory.push("Ring of Might")>>\
You buy a Ring of Might. Defense increased by 8!<br>
[[Continue|elfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|elfitems]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Ring of Power") gte 0>>\
You already have one of those!<br>
[[Continue|elfitems]]
<<else>>\
<<if $gold gte 500>>\
<<set $gold -= 500>>\
<<set $atk += 10>>\
<<set $atkpwr = $sword + $atk>>\
<<set $inventory.push("Ring of Power")>>\
You buy a Ring of Power. Attack power increased by 10!<br>
[[Continue|elfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|elfitems]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 75>>\
<<set $gold -= 75>>\
<<set $potion += 1>>\
You bought a potion!<br>
[[Continue|elfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|elfitems]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 115>>\
<<set $gold -= 115>>\
<<set $weap = "Iron Sword">>\
<<set $sword = 10>>\
<<set $atkpwr = $sword + $atk>>\
You bought an iron sword!<br>
Attack power: $atkpwr<br>
[[Continue|elfwaps]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 235>>\
<<set $gold -= 235>>\
<<set $weap = "Steel Sword">>\
<<set $sword = 14>>\
<<set $atkpwr = $sword + $atk>>\
You bought a steel sword!<br>
Attack power: $atkpwr<br>
[[Continue|elfwaps]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 500>>\
<<set $gold -= 500>>\
<<set $weap = "Silver Sword">>\
<<set $sword = 18>>\
<<set $atkpwr = $sword + $atk>>\
You bought a silver sword!<br>
Attack power: $atkpwr<br>
[[Continue|elfwaps]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 1200>>\
<<set $gold -= 1200>>\
<<set $weap = "Elf Sword">>\
<<set $sword = 25>>\
<<set $atkpwr = $sword + $atk>>\
You bought an elf sword!<br>
Attack power: $atkpwr<br>
[[Continue|elfwaps]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 90>>\
<<set $gold -= 90>>\
<<set $shield = "Iron Shield">>\
<<set $sd = 5>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought an iron shield! Total defense: $def<br>
[[Continue|elfwaps]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 200>>\
<<set $gold -= 200>>\
<<set $shield = "Steel Shield">>\
<<set $sd = 8>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a steel shield! Total defense: $def<br>
[[Continue|elfwaps]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 210>>\
<<set $gold -= 210>>\
<<set $armor = "Chain mail">>\
<<set $arm = 7>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought chain mail! Total defense: $def<br>
[[Continue|elfwaps]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 560>>\
<<set $gold -= 560>>\
<<set $armor = "Plate armor">>\
<<set $arm = 13>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought plate armor! Total defense: $def<br>
[[Continue|elfwaps]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 215>>\
<<set $gold -= 215>>\
<<set $helmet = "Steel Helm">>\
<<set $helm = 6>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a steel helm! Total defense: $def<br>
[[Continue|elfwaps]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 575>>\
<<set $gold -= 575>>\
<<set $helmet = "Elf Helm">>\
<<set $helm = 10>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought an elf helm! Total defense: $def<br>
[[Continue|elfwaps]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|elfwaps]]
<</if>>\
</div>\<div style="text-align: center;">\
</div>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
<td>[[+|magico]]</td>
</tr>
</table>
Remaining stat points: $stats<div style="text-align: center;">\
</div>\
<<set $atk += 1>>\
<<set $atkpwr = $sword + $atk>>\
<<set $stats -= 1>>\
<<if $stats == 0>>\
These are your starting stats:
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
</tr>
</table>
Remaining stat points: $stats<br>
[[Confirm stats]]
[[Reset stats]]
<<else>>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
<td>[[+|magico]]</td>
</tr>
</table>
Remaining stat points: $stats
<</if>>\<div style="text-align: center;">\
</div>\
<<set $basedef += 1>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $stats -= 1>>\
<<if $stats == 0>>\
These are your starting stats:
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
</tr>
</table>
Remaining stat points: $stats<br>
[[Confirm stats]]
[[Reset stats]]
<<else>>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
<td>[[+|magico]]</td>
</tr>
</table>
Remaining stat points: $stats
<</if>>\<div style="text-align: center;">\
</div>\
<<set $mp += 1>>\
<<set $maxmp += 1>>\
<<set $stats -= 1>>\
<<if $stats == 0>>\
These are your starting stats:
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
</tr>
</table>
Remaining stat points: $stats<br>
[[Confirm stats]]
[[Reset stats]]
<<else>>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
<td>[[+|magico]]</td>
</tr>
</table>
Remaining stat points: $stats
<</if>>\<div style="text-align: center;">\
You step into the barbarian's Level 1 closet. There are a bunch of crappy items laying around. Choose a weapon:<br>
[[Soup ladle]]
[[Hammer]]
[[Joke wand]]
</div>\<<set $stats = 5>>\
<<set $mp = 1>>\
<<set $maxmp = 1>>\
<<set $atk = 1>>\
<<set $basedef = 1>>\
<div style="text-align: center;">\
</div>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$mp</td>
<td>[[+|magico]]</td>
</tr>
</table>
Remaining stat points: $stats<div style="text-align: center;">\
<<set $weap = "Soup ladle">>\
You took the soup ladle. Choose your armor:<br>
[[Dirty Rags]]
[[Old loincloth]]
[[Magic bathrobe]]
</div>\<div style="text-align: center;">\
<<set $weap = "Hammer">>\
You took the hammer. Choose your armor:<br>
[[Dirty Rags]]
[[Old loincloth]]
[[Magic bathrobe]]
</div>\<div style="text-align: center;">\
<<set $weap = "Joke wand">>\
You took the joke wand. Choose your armor:<br>
[[Dirty Rags]]
[[Old loincloth]]
[[Magic bathrobe]]
</div>\<div style="text-align: center;">\
<<set $armor = "Dirty rags">>\
You put on the dirty rags. Everything else in this closet is junk, but you find a trash can lid to use as a shield and a rusty pot for a helmet. Good enough.<br>
[[Continue|storystart]]
</div>\<div style="text-align: center;">\
<<set $armor = "Old loincloth">>\
You put on the old loincloth. Everything else in this closet is junk, but you find a trash can lid to use as a shield and a rusty pot for a helmet. Good enough.<br>
[[Continue|storystart]]
</div>\<div style="text-align: center;">\
<<set $armor = "Magic bathrobe">>\
You put on the magic bathrobe. Everything else in this closet is junk, but you find a trash can lid to use as a shield and a rusty pot for a helmet. Good enough.<br>
[[Continue|storystart]]
</div>\<div style="text-align: center;">\
MP: $mp
Last but not least, choose a starting ability! Mind your magic points- you can't cast spells unless you have enough MP.<br>
<table style="width:100%">
<tr>
<th>Spell</th>
<th>Effect</th>
<th>MP</th>
</tr>
<tr>
<td>[[Heal]]</td>
<td>Restores 50 HP</td>
<td>1</td>
</tr>
<tr>
<td>[[Power Slash]]</td>
<td>Deals 2x damage</td>
<td>2</td>
</tr>
<tr>
<td>[[Mega Heal]]</td>
<td>Restores 100 HP</td>
<td>4</td>
</tr>
<tr>
<td>[[Teleport]]</td>
<td>Warp to KFSB's castle</td>
<td>5</td>
</tr>
<tr>
<td>[[Multi Smash]]</td>
<td>Deals 4x damage</td>
<td>8</td>
</tr>
<tr>
<td>[[Full Heal]]</td>
<td>Restores full HP</td>
<td>9</td>
</tr>
<tr>
<td>[[Fireball]]</td>
<td>Deals 10x damage</td>
<td>12</td>
</tr>
<tr>
<td>[[Frostfire]]</td>
<td>Deals 20x damage</td>
<td>20</td>
</tr>
</table>
</div>\<div style="text-align: center;">\
The dude leaves and you step out into the city. You are now ready to begin your heroic quest!<br>
[[Continue|maintown]]
</div>\<div style="text-align: center;">\
RANDOM GUY:
In that case, the village is surrounded by monsters and there's a cyclops on the loose. You should go to the Oddwood and warn the elves!<br>
[[Continue|dudelesaves]]
</div>\<div style="text-align: center;">\
<<set $powerslash += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
RANDOM GUY:
Oh, KuFuSpaBa, thank goodness I caught you before you left- wait a second, you're not him! Who are you? The new hero, you say?<br>
[[Continue|dudelesavesd]]
</div>\<div style="text-align: center;">\
<<set $heal += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
<<set $teleport += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
<<set $multismash += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
<<set $megaheal += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
<<set $fireball += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
<<set $fullheal += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
<<set $frostfire += 1>>\
Special ability added. You can unlock new special abilities as you level up. But you can fuss over that later. Right now you have to deal with the silly looking man who just burst into the room!<br>
[[Continue|sillyman]]
</div>\<div style="text-align: center;">\
</div>\
<<if $stats gte 1>>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko1]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso1]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$maxmp</td>
<td>[[+|magico1]]</td>
</tr>
</table>
Remaining stat points: $stats
<<else>>\
<div style="text-align: center;">\
You don't have any stat points! Come back after you level up again.<br>
[[Continue|Magic shop]]
</div>\
<</if>>\<div style="text-align: center;">\
Stat points: $stats
Ability points: $abilitypoints<br>
Welcome to $kungsyours magic castle! You can spend new stat points and ability points here. What would you like to do?<br>
[[Beef up my stats]]
[[Unlock a new ability]]
<<if $hisyours == "your">>\
[[Enter the secret room]]
<</if>>\
[[Leave|maintown]]
</div>\<div style="text-align: center;">\
<<if $abilitypoints gte 1>>\
Ability Points: $abilitypoints
Choose a new special ability:<br>
<table style="width:100%">
<tr>
<th>Spell</th>
<th>Effect</th>
<th>MP</th>
</tr>
<tr>
<td>[[Heal|healle]]</td>
<td>Restores 50 HP</td>
<td>1</td>
</tr>
<tr>
<td>[[Power Slash|sowerplash]]</td>
<td>Deals 2x damage</td>
<td>2</td>
</tr>
<tr>
<td>[[Mega Heal|megeksjf]]</td>
<td>Restores 100 HP</td>
<td>4</td>
</tr>
<tr>
<td>[[Teleport|tellybelly]]</td>
<td>Warp to $hisyours castle</td>
<td>5</td>
</tr>
<tr>
<td>[[Multi Smash|multiepif]]</td>
<td>Deals 4x damage</td>
<td>8</td>
</tr>
<tr>
<td>[[Full Heal|superhdughe]]</td>
<td>Restores full HP</td>
<td>9</td>
</tr>
<tr>
<td>[[Fireball|flamejgfhg]]</td>
<td>Deals 10x damage</td>
<td>12</td>
</tr>
<tr>
<td>[[Frostfire|fireshnow]]</td>
<td>Deals 20x damage</td>
<td>20</td>
</tr>
</table>
[[Back|Magic shop]]
<<else>>\
You don't have any ability points! Come back after you level up a bit more.<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $powerslash gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $powerslash += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $heal gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $heal += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $teleport gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $teleport += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $multismash gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $multismash += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $megaheal gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $megaheal += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $fireball gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $fireball += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $fullheal gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $fullheal += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $frostfire gte 1>>\
You already have that ability!<br>
[[Back|Unlock a new ability]]
<<else>>\
<<set $abilitypoints -= 1>>\
<<set $frostfire += 1>>\
Special ability added!<br>
[[Continue|Magic shop]]
<</if>>\
</div>\<div style="text-align: center;">\
</div>\
<<set $atk += 1>>\
<<set $atkpwr = $sword + $atk>>\
<<set $stats -= 1>>\
<<if $stats == 0>>\
Stats increased!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$maxmp</td>
</tr>
</table>
Remaining stat points: $stats<br>
[[Continue|Magic shop]]
<<else>>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko1]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso1]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$maxmp</td>
<td>[[+|magico1]]</td>
</tr>
</table>
Remaining stat points: $stats
<</if>>\<div style="text-align: center;">\
</div>\
<<set $basedef += 1>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $stats -= 1>>\
<<if $stats == 0>>\
Stats increased!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$maxmp</td>
</tr>
</table>
Remaining stat points: $stats<br>
[[Continue|Magic shop]]
<<else>>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko1]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso1]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$maxmp</td>
<td>[[+|magico1]]</td>
</tr>
</table>
Remaining stat points: $stats
<</if>>\<div style="text-align: center;">\
</div>\
<<set $mp += 1>>\
<<set $maxmp += 1>>\
<<set $stats -= 1>>\
<<if $stats == 0>>\
Stats increased!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$maxmp</td>
</tr>
</table>
Remaining stat points: $stats<br>
[[Continue|Magic shop]]
<<else>>\
Beef up your stats!
<table style="width:100%">
<tr>
<td>HP</td>
<td>$hp/$maxHP</td>
<td></td>
</tr>
<tr>
<td>ATTACK</td>
<td>$atk</td>
<td>[[+|attacko1]]</td>
</tr>
<tr>
<td>DEFENSE</td>
<td>$basedef</td>
<td>[[+|defenso1]]</td>
</tr>
<tr>
<td>MAGIC</td>
<td>$maxmp</td>
<td>[[+|magico1]]</td>
</tr>
</table>
Remaining stat points: $stats
<</if>>\<div style="text-align: center;">\
<<if $hisyours == "your">>\
OLD MAN:
The barbarian wouldn't have chosen you if he didn't believe in you. We're all counting on you!<br>
[[Back|Gossip]]
<<else>>\
<<if $cyclops == 0>>\
OLD MAN:
The elves are rumored to possess a magic sword. That could come in handy for a hero! Of course, they wouldn't just hand over a treasure like that...<br>
[[Back|Gossip]]
<<else>>\
OLD MAN:
Poke the cyclops in the eye with a long stick!<br>
[[Back|Gossip]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $hisyours == "your">>\
PRETTY GIRL:
I can't believe he's really gone... He was so handsome!<br>
[[Back|Gossip]]
<<else>>\
<<if $cyclops == 0>>\
PRETTY GIRL:
Wow! You beat the cyclops? You must be pretty tough!<br>
[[Back|Gossip]]
<<else>>\
PRETTY GIRL:
Irongate is surrounded by monsters! I wish Kung Fu Space Barbarian would come back and save us! Oh- he made you the new hero? Well, okay... good luck out there.<br>
[[Back|Gossip]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $hisyours == "your">>\
LITTLE KID:
Mommy said Kung Fu Space Barbarian will always live on in our hearts. I wanna be big and strong like him someday. But you're strong now, too! Is it okay if I grow up to be like you instead?<br>
[[Back|Gossip]]
<<else>>\
<<if $cyclops == 0>>\
LITTLE KID:
I always wanted to go to the Oddwood and see the elves, but my mommy says the woods are filled with scary monsters!<br>
[[Back|Gossip]]
<<else>>\
LITTLE KID:
Everyone in the tavern says something different, but I always say the same thing over and over again. Guess that's what happens when you're just an NPC.<br>
[[Back|Gossip]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $hisyours == "your">>\
BAKER:
Kung Fu Space Barbarian had the sexiest buns.<br>
[[Back|Gossip]]
<<else>>\
<<if $cyclops == 0>>\
BAKER:
Sounds to me like the cyclops is toast! Nyuk nyuk nyuk!<br>
[[Back|Gossip]]
<<else>>\
BAKER:
I make crummy puns when you yeast expect it! Nyuk nyuk nyuk! (sigh) The worst thing about bread puns is they tend to get stale after a while.<br>
[[Back|Gossip]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $hisyours == "your">>\
SCHOLAR:
Turns out there was no princess after all. It was just an elaborate trap. Curse those dirty shapeshifting scoundrels!<br>
[[Back|Gossip]]
<<else>>\
<<if $cyclops == 0>>\
SCHOLAR:
The princess in the tower? No, I don't think she was an elf. She lives in one of the human kingdoms in the north.<br>
[[Back|Gossip]]
<<else>>\
SCHOLAR:
I heard a story about a princess locked in a tower. Why do fairy tale princesses always get locked in towers? If my daughter was a princess I'd tell her to carry a magic key.<br>
[[Back|Gossip]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $cyclops == 0>>\
GAMBLER:
Today must be my lucky day! With that cyclops dead, I can finally return to Edgewater and see my girlfriend! Yippee!<br>
[[Back|Gossip]]
<<else>>\
GAMBLER:
I lost my favorite fuzzy hat in a bet with a barbarian from the Frozen North! I wonder what happened to him?<br>
[[Back|Gossip]]
<</if>>\
</div>\<div style="text-align: center;">\
Where do you want to teleport to?<br>
[[Irongate|maintown]]
<<if visited("Leave town")>>\
[[Wasteland|Leave town]]
<</if>>\
<<if visited("intotheforest")>>\
[[Oddwood|intotheforest]]
<</if>>\
<<if visited("Visit the elves")>>\
[[Red Hawk Village|Visit the elves]]
<</if>>\
<<if visited("Travel to the dwarf mountains")>>\
[[Stonehammer Crags|Travel to the dwarf mountains]]
<</if>>\
<<if visited("Stonehammer Keep")>>\
[[Stonehammer Keep]]
<</if>>\
<<if visited("frozennorth")>>\
[[Frozen North|frozennorth]]
<</if>>\
<<if visited("standinginmoonbright")>>\
[[Moonbright|standinginmoonbright]]
<</if>>\
<<if visited("standinginedgewater")>>\
[[Edgewater|standinginedgewater]]
<</if>>\
<<back "Back">>
</div>\<div style="text-align: center;">\
<<set $bonushp = random(1,3)>>\
<<set $mp += $bonushp>>\
<<set $maxmp += $bonushp>>\
You gained +$bonushp MP!<br>
[[Continue|CheckEndState]]
</div>\<div style="text-align: center;">\
<<if $elfquest lte 1>>\
ELF KID:
You should stay away from the ruins. Mommy says they're filled with scary monsters! If I did go in there, I'd bring a silver sword. I hear vampires are weak against silver!<br>
[[Back|elfgossip]]
<<else>>\
ELF KID:
The elf queen gave you a magic sword, too? Cool! I have one just like it!<br>
[[Back|elfgossip]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $elfquest lte 1>>\
ELF LADY:
There was a cyclops ripping people's legs off in the forest. I'm surprised you got past it!<br>
[[Back|elfgossip]]
<<else>>\
ELF LADY:
There's a man in Irongate who makes terrible bread puns. Ugh, how tacky.<br>
[[Back|elfgossip]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $elfquest lte 1>>\
WISE ELF:
The darkness spreading across our land seems to be coming from a castle in the north. I hear barbarians are fighting shapeshifters up there.<br>
[[Back|elfgossip]]
<<else>>\
WISE ELF:
The only way to reach Shipwreck Cove is by hiring a ship in Edgewater. But nobody would take you. It's called Shipwreck Cove for a reason!<br>
[[Back|elfgossip]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $elfquest lte 1>>\
DANCING ELF:
A vampire stole the elf queen's crown. I bet she'd reward any hero brave enough to get it back. How I'd love to write a new ballad about a hero!<br>
[[Back|elfgossip]]
<<else>>\
DANCING ELF:
I like your helmet! But doesn't all that gear get heavy after a while? How will you be able to dance when you find a +36 Suit of Spikes?<br>
[[Back|elfgossip]]
<</if>>\
</div>\<div style="text-align: center;">\
You received the Magic Sword!<br>
Sword damage increased:
$sword → 28<br>
<<set $weap = "Magic Sword">>\
<<set $sword = 28>>\
<<set $atkpwr = $sword + $atk>>\
[[Continue|Visit the elves]]
</div>\
<<set $quests.push("<s>Return the elf queen's crown</s>")>>\
<<set $quests.push("Head to the dwarf mountains")>>\
<<set $quests.delete("Return the elf queen's crown")>>\
<<set $inventory.delete("Elf Queen's Crown")>>\<div style="text-align: center;">\
ELF QUEEN:
Listen, an evil vampire stole my crown. He's hiding in the ruins nearby. I'll give you a great reward if you defeat him and return my stolen crown!<br>
[[Continue|Visit the elves]]
</div>\
<<set $quests.push("<s>Talk to the elf queen</s>")>>\
<<set $quests.push("Kill the vampire")>>\
<<set $quests.delete("Talk to the elf queen")>>\
<<set $ruins += 1>>\<div style="text-align: center;">\
VAMPIRE LORD:
So you have defeated my minions and reached my inner lair? It matters not! You will never take back the elf queen's crown! I will suck your blood!<br>
[[Fight the vampire|startfight]]
<<if $weap == "Silver Sword">>\
[[Stab the vampire with your silver sword]]
<</if>>\
<<set $ehp = 700>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(70,100)>>\
<<set $xpgain = random(165,240) * $level>>\
<<set $treasure = random(70,95) * $level>>\
<<set $state = 5>>\
</div>\<div style="text-align: center;">\
A gargoyle attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 70 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(35,90)>>\
<<set $xpgain = random(80,140) * $level>>\
<<set $treasure = random(40,65) * $level>>\
</div>\<div style="text-align: center;">\
A gorgon attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 60 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(35,90)>>\
<<set $xpgain = random(80,140) * $level>>\
<<set $treasure = random(40,65) * $level>>\
</div>\<div style="text-align: center;">\
A djinn attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 60 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(35,90)>>\
<<set $xpgain = random(80,140) * $level>>\
<<set $treasure = random(40,65) * $level>>\
</div>\<div style="text-align: center;">\
A centaur attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 80 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(35,90)>>\
<<set $xpgain = random(80,140) * $level>>\
<<set $treasure = random(40,65) * $level>>\
</div>\<div style="text-align: center;">\
You stab the vampire with your silver sword! The vampire's ATTACK and HP have been significantly reduced!<br>
[[Continue|startfight]]
<<set $ehp -= 220>>\
<<set $eatk = random(55,70)>>\
</div>\<div style="text-align: center;">\
You found the elf queen's crown!<br>
[[Continue|Visit the elves]]
</div>
<<set $elfquest += 1>>\
<<set $inventory.push("Elf Queen's Crown")>>\
<<set $ruins -= 1>>\<div style="text-align: center;">\
Location: Stonehammer Crags
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
The Stonehammer Crags are home to the dwarves, but lately they've been swarming with monsters. Where do you want to go?<br>
[[Fight monsters]]
[[Stonehammer Keep]]
[[Return to the elf village|Visit the elves]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
<<set $state = 7>>\
</div>\<div style="text-align: center;">\
<u>GEAR</u><br>
<<print $inventory.join("\n")>><br>
<<back "Back">>
</div>\<div style="text-align: center;">\
Location: Stonehammer Keep
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
You are standing in the dwarf fortress. Where do you want to go?<br>
[[Blacksmith|dwarfweapons]]
[[Marketplace|dwarfitems]]
[[Tavern|dwarfinn]]
[[Dwarf king's chambers]]
[[Return to Stonehammer Crags|Travel to the dwarf mountains]]
<<if $dungeonsopen gte 1>>\
[[Enter the dungeons|dwarfdungeons]]
<</if>>\
<<if $kingscrypts gte 1>>\
[[Enter the crypts|dwarfcrypts]]
<</if>>\
<<if visited("northopennow")>>\
[[Exit through the northern passageway]]
<</if>>\
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\<div style="text-align: center;">\
A hill ghoul attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 130 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(65,80)>>\
<<set $xpgain = random(155,250) * $level>>\
<<set $treasure = random(60,85) * $level>>\
</div>\<div style="text-align: center;">\
An evil dwarf attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 120 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(65,70)>>\
<<set $xpgain = random(155,250) * $level>>\
<<set $treasure = random(60,85) * $level>>\
</div>\<div style="text-align: center;">\
Gold: $gold
What do you want to buy?<br>
<table style="width:100%">
<tr>
<th>Swords</th>
<th>Attack</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Crystal sword]]</td>
<td>$sword → 32</td>
<td>2095</td>
</tr>
<tr>
<td>[[Dwarf sword]]</td>
<td>$sword → 35</td>
<td>5500</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Shields</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Mithril shield]]</td>
<td>$sd → 14</td>
<td>1250</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Armor</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Plate armor|dwarfplate]]</td>
<td>$arm → 13</td>
<td>560</td>
</tr>
<tr>
<td>[[Mithril armor]]</td>
<td>$arm → 18</td>
<td>4200</td>
</tr>
<tr>
<th> - </th>
<th> - </th>
<th> - </th>
</tr>
<tr>
<th>Helmets</th>
<th>Defense</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Knight's helm]]</td>
<td>$helm → 12</td>
<td>1500</td>
</tr>
<tr>
<td>[[Dwarf helmet]]</td>
<td>$helm → 15</td>
<td>2200</td>
</tr>
</table>
[[Exit shop|Stonehammer Keep]]
</div>\<div style="text-align: center;">\
Gold: $gold
What do you want to buy?<br>
<table style="width:100%">
<tr>
<th>Item</th>
<th>Attribute</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Potion|dwarfpotion]]</td>
<td>Restore 100 HP</td>
<td>75</td>
</tr>
<tr>
<td>[[Life Stone]]</td>
<td>+50 HP</td>
<td>8500</td>
</tr>
<tr>
<td>[[Shield Stone]]</td>
<td>+10 defense</td>
<td>9900</td>
</tr>
<tr>
<td>[[Warrior's Pendant]]</td>
<td>+10 attack</td>
<td>15000</td>
</tr>
<tr>
<td>[[Iron Heart]]</td>
<td>+10 all stats</td>
<td>35000</td>
</tr>
</table>
[[Leave|Stonehammer Keep]]
</div>\<div style="text-align: center;">\
Welcome to the tavern. You can spend the night for 48 gold coins. What would you like to do?<br>
[[Rest|dwarfsleep]]
[[Eat|eat3]]
[[Gossip|dwarfgossip]]
[[Leave|Stonehammer Keep]]
</div>\<div style="text-align: center;">\
<<if $dwarfking == 0>>\
DWARF ADVISOR:
Thank goodness you're here! The dwarf king has been captured by goblins! They've taken him into the dungeons beneath Stonehammer Keep. You must rescue him!<br>
[[Continue|mustrescue]]
<</if>>\
<<if $dwarfking == 1>>\
DWARF ADVISOR:
The goblins took the dwarf king into the dungeons beneath Stonehammer Keep. You must rescue him!<br>
[[Continue|Stonehammer Keep]]
<</if>>\
<<if $dwarfking == 2>>\
DWARF KING:
Thank ye again fer savin' my skin back there, hero. If ye wanna pass through to the north, ye'll have to find my great-great-great grandfather's legendary Rune Sword. I cannae imagine where those nasty little imps got off to, though...<br>
[[Continue|Stonehammer Keep]]
<</if>>\
<<if $dwarfking == 3>>\
DWARF KING:
Ye found it! Thanks a bunch, ye old codger! I knew I could count on ye. Now let's see about gettin' that northern passage open!<br>
[[Continue|openthenorth]]
<</if>>\
<<if $dwarfking == 4>>\
DWARF KING:
Yer a true hero, no doubt about it! Kung Fu Space Barbarian would be proud!<br>
[[Continue|Stonehammer Keep]]
<</if>>\
</div>\<div style="text-align: center;">\
You enter the dungeons. You'll need to defeat 5 monsters in a row before battling the big bad boss. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 8>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 32>>\
This item is useless to you!<br>
[[Back|dwarfweapons]]<br>
<br>
<<else>>\
A crystal sword will increase your sword damage:
$sword → 32
Buy a crystal sword for 2095 gold?<br>
[[Buy|buycrystalsword]]
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 35>>\
This item is useless to you!<br>
[[Back|dwarfweapons]]<br>
<br>
<<else>>\
A dwarf sword will increase your sword damage:
$sword → 35
Buy a dwarf sword for 5500 gold?<br>
[[Buy|buydwarfsword]]
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sd gte 12>>\
This item is useless to you!<br>
[[Back|dwarfweapons]]
<<else>>\
A mithril shield will increase your shield defense:
$sd → 14
Buy a mithril shield for 1250 gold?<br>
[[Buy|buytowersheild]]
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 13>>\
This item is useless to you!<br>
[[Back|dwarfweapons]]
<<else>>\
Plate armor will increase your armor:
$arm → 13
Buy plate armor for 560 gold?<br>
[[Buy|buyplatearm2]]
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 18>>\
This item is useless to you!<br>
[[Back|dwarfweapons]]
<<else>>\
Mithril armor will increase your armor:
$arm → 18
Buy mithril armor for 4200 gold?<br>
[[Buy|buymithril]]
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm gte 12>>\
This item is useless to you!<br>
[[Back|dwarfweapons]]
<<else>>\
A knight's helm will increase your helmet defense:
$helm → 12
Buy a knight's helm for 1500 gold?<br>
[[Buy|buyknighthelm]]
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm gte 15>>\
This item is useless to you!<br>
[[Back|dwarfweapons]]
<<else>>\
A dwarf helmet will increase your helmet defense:
$helm → 15
Buy a dwarf helmet for 2200 gold?<br>
[[Buy|buydrwarfhelm]]
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 75>>\
<<set $gold -= 75>>\
<<set $potion += 1>>\
You bought a potion!<br>
[[Continue|dwarfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|dwarfitems]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Life Stone") gte 0>>\
You already have one of those!<br>
[[Continue|dwarfitems]]
<<else>>\
<<if $gold gte 8500>>\
<<set $gold -= 8500>>\
<<set $hp += 50>>\
<<set $maxHP += 50>>\
<<set $inventory.push("Life Stone")>>\
You buy a Life Stone. Max HP increased by 50!<br>
[[Continue|dwarfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|dwarfitems]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Shield Stone") gte 0>>\
You already have one of those!<br>
[[Continue|dwarfitems]]
<<else>>\
<<if $gold gte 9900>>\
<<set $gold -= 9900>>\
<<set $basedef += 10>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $inventory.push("Shield Stone")>>\
You buy a Shield Stone. Defense increased by 10!<br>
[[Continue|dwarfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|dwarfitems]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Warrior's Pendant") gte 0>>\
You already have one of those!<br>
[[Continue|dwarfitems]]
<<else>>\
<<if $gold gte 15000>>\
<<set $gold -= 15000>>\
<<set $atk += 10>>\
<<set $atkpwr = $sword + $atk>>\
<<set $inventory.push("Warrior's Pendant")>>\
You buy a Warrior's Pendant. Attack power increased by 10!<br>
[[Continue|dwarfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|dwarfitems]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Iron Heart") gte 0>>\
You already have one of those!<br>
[[Continue|dwarfitems]]
<<else>>\
<<if $gold gte 35000>>\
<<set $gold -= 35000>>\
<<set $hp += 10>>\
<<set $maxHP += 10>>\
<<set $atk += 10>>\
<<set $atkpwr = $sword + $atk>>\
<<set $mp += 10>>\
<<set $maxmp += 10>>\
<<set $basedef += 10>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $inventory.push("Iron Heart")>>\
You buy an Iron Heart. Max HP increased by 10! Max MP increased by 10! Max attack increased by 10! Max defense increased by 10! By Shergblatt's hairy butt crack, there are way too many exclamation points on this page!!!<br>
[[Continue|dwarfitems]]
<<else>>\
You don't have enough gold!<br>
[[Continue|dwarfitems]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
DWARF ADVISOR:
The goblins destroyed the passageway to the north, and only the dwarf king is powerful enough to open it again. If you rescue him I'm sure he'll help clear a path for you!<br>
[[Continue|Stonehammer Keep]]
<<set $dungeonsopen += 1>>\
<<set $dwarfking += 1>>\
<<set $quests.push("<s>Head to the dwarf mountains</s>")>>\
<<set $quests.push("Rescue the dwarf king")>>\
<<set $quests.delete("Head to the dwarf mountains")>>\
</div>\<div style="text-align: center;">\
ORC CAPTAIN:
I knew I shouldn't have hired trolls and goblins for this job! Those cowardly little wimps can't even stop riff-raff like you from getting in here! I'll just have to kill both you and the dwarf king myself!<br>
[[Fight the Orc Captain|startfight]]
<<if visited("treasurecavefinal")>>\
[[Bribe the Orc Captain with the jeweled chalice]]
<</if>>\
<<set $ehp = 2000>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(70,100)>>\
<<set $xpgain = random(350,540) * $level>>\
<<set $treasure = random(100,295) * $level>>\
<<set $state = 9>>\
</div>\<div style="text-align: center;">\
A troglodyte attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 150 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(65,75)>>\
<<set $xpgain = random(200,300) * $level>>\
<<set $treasure = random(80,105) * $level>>\
</div>\<div style="text-align: center;">\
An ogre attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 150 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(75,80)>>\
<<set $xpgain = random(200,300) * $level>>\
<<set $treasure = random(80,105) * $level>>\
</div>\<div style="text-align: center;">\
An evil imp attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 150 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(55,80)>>\
<<set $xpgain = random(200,300) * $level>>\
<<set $treasure = random(80,105) * $level>>\
</div>\<div style="text-align: center;">\
A goblin attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 150 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(55,70)>>\
<<set $xpgain = random(200,300) * $level>>\
<<set $treasure = random(80,105) * $level>>\
</div>\<div style="text-align: center;">\
You present the Orc Captain with the jeweled chalice. He licks his lips greedily before snatching it out of your hands. The Orc Captain seems to have forgotten all about the dwarf king- he runs away with his new treasure!<br>
[[Continue|endfightt]]
<<set $chalice -= 1>>\
<<set $inventory.delete("Jeweled Chalice")>>\
</div>\<div style="text-align: center;">\
<<set $dwarfking += 1>>\
DWARF KING:
Thank ye fer savin' me! Yer a right true hero, now that's a fact! What's that? Ye want me to clear the passage to the North? Well bloody my nose and call me a biscuit, I'm afraid I cannae help ye.<br>
[[Continue|dwarvisn]]
</div>\<div style="text-align: center;">\
<<if $gold gte 2095>>\
<<set $gold -= 2095>>\
<<set $weap = "Crystal Sword">>\
<<set $sword = 32>>\
<<set $atkpwr = $sword + $atk>>\
You bought a crystal sword!<br>
Attack power: $atkpwr<br>
[[Continue|dwarfweapons]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|dwarfweapons]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 5500>>\
<<set $gold -= 5500>>\
<<set $weap = "Dwarf Sword">>\
<<set $sword = 35>>\
<<set $atkpwr = $sword + $atk>>\
You bought a dwarf sword!<br>
Attack power: $atkpwr<br>
[[Continue|dwarfweapons]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|dwarfweapons]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 1250>>\
<<set $gold -= 1250>>\
<<set $shield = "Mithril Shield">>\
<<set $sd = 14>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a mithril shield! Total defense: $def<br>
[[Continue|dwarfweapons]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 560>>\
<<set $gold -= 560>>\
<<set $armor = "Plate armor">>\
<<set $arm = 13>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought plate armor! Total defense: $def<br>
[[Continue|dwarfweapons]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 4200>>\
<<set $gold -= 4200>>\
<<set $armor = "Mithril armor">>\
<<set $arm = 18>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought mithril armor! Total defense: $def<br>
[[Continue|dwarfweapons]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 1500>>\
<<set $gold -= 1500>>\
<<set $helmet = "Knight's Helm">>\
<<set $helm = 12>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a knight's helm! Total defense: $def<br>
[[Continue|dwarfweapons]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|dwarfweapons]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 2200>>\
<<set $gold -= 2200>>\
<<set $helmet = "Dwarf Helmet">>\
<<set $helm = 15>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a dwarf helmet! Total defense: $def<br>
[[Continue|dwarfweapons]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|dwarfweapons]]
<</if>>\
</div>\<<if $gold gte 48>>\
<<set $gold -= 48>>\
<<set $hp = $maxHP>>\
<<set $mp = $maxmp>>\
<div style="text-align: center;">\
You spend the night at the inn. HP and MP restored!<br>
[[Continue|dwarfinn]]<br>
<br>
</div>\
<<else>>\
<div style="text-align: center;">\
You don't have enough gold!<br>
[[Continue|dwarfinn]]<br>
<br>
</div>\
<</if>>\<div style="text-align: center;">\
Buy a slice of healing pizza for 10 coins?<br>
[[Yes|yespizza3]]
<<back "No">>
</div>\<div style="text-align: center;">\
Who do you want to talk to?<br>
[[Dwarf merchant]]
[[Miner]]
[[Bearded lady]]
[[Grumpy dwarf]]
[[Back|dwarfinn]]
</div>\<div style="text-align: center;">\
<<if $gold gte 10>>\
<<set $gold -= 10>>\
<<set $pizza += 1>>\
You bought a slice of pizza!<br>
[[Continue|dwarfinn]]
<<else>>\
You don't have enough gold!<br>
[[Continue|dwarfinn]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if visited("dwarfgossiptc")>>\
DWARF MERCHANT:
Some day I'll set up my shop in another town. Maybe somewhere like Irongate... then I could spend all day searching for that treasure cave...<br>
[[Continue|dwarfgossip]]
<<else>>\
<<set $treasurecave += 1>>\
DWARF MERCHANT:
Apparently there's a mysterious treasure cave hidden somewhere in the desert outside of Irongate. I wish I could go and search for it...<br>
[[Continue|dwarfgossiptc]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $dwarfking lte 1>>\
MINER:
It's a tale as old as time... we dwarves dug too deep, and that woke up the goblins! Now they've gone and taken our king. We'll never learn, will we?<br>
[[Continue|dwarfgossip]]
<<else>>\
MINER:
It's great to have the king back safe and sound. Now we can start digging again! Just think of all the riches we're bound to find if we dig a little deeper!<br>
[[Continue|dwarfgossip]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $dwarfking lte 1>>\
BEARDED LADY:
What's all this fighting for anyway? Everyone knows Orcs are a greedy lot. Just give them a nice treasure and they'll run off.<br>
[[Continue|dwarfgossip]]
<<else>>\
BEARDED LADY:
(munches on pizza)<br>
[[Continue|bl2]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $dwarfking lte 1>>\
GRUMPY DWARF:
That blasted merchant won't shut up about his stupid treasure caves, and that bearded lady keeps talking about peaceful solutions to all our problems. They're both out of their minds, I tell ye!<br>
[[Continue|dwarfgossip]]
<<else>>\
GRUMPY DWARF:
The pizza sucks in this tavern. I got in a fight the other day and my pizza only restored 50 HP. Then I got hit by a monster who dealt me 52 points of damage! What a waste of money...<br>
[[Continue|dwarfgossip]]
<</if>>\
</div>\<div style="text-align: center;">\
DWARF KING:
Ye see, I gained all my power from the legendary Rune Sword, which was crafted by my great-great-great grandfather. It was a family heirloom, but some of the nasty little imps knicked it while I was locked away in the dungeon. Go find that sword and I'll be glad to help ye clear a path!<br>
[[Continue|Stonehammer Keep]]
</div>\
<<set $dungeonsopen = 0>>\<div style="text-align: center;">\
You found a secret treasure cave! Defeat 5 monsters in a row to find a valuable treasure!<br>
[[Continue|CheckStartState]]
<<set $state = 10>>\
</div>\<div style="text-align: center;">\
<<set $gold += 10000>>\
<<set $inventory.push("Jeweled Chalice")>>\
What luck! You found 10,000 gold coins! And this jeweled chalice is breathtaking! Your pockets are now stuffed with gold.<br>
[[Continue|Leave town]]
<<set $treasurecave -= 1>>\
</div>\<div style="text-align: center;">\
You enter the dwarf king's crypts. You'll need to defeat 5 monsters in a row to obtain the Rune Sword. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 13>>\
</div>\<<cacheaudio "beep" "https://raw.githubusercontent.com/kungfuspacebarbarian/dreadnaughts/master/453027__akelley6__8-bit-click.mp3">>
<<cacheaudio "dq" "https://raw.githubusercontent.com/kungfuspacebarbarian/dreadnaughts/master/687015_RPG-Battle-Song-DragonQues.mp3">>
<div style="text-align: center;">\
HINTS & TIPS<br>
Get teleport early on. Not only will it let you escape from a fight 100% of the time, but you can also fast travel to any locations you’ve visited already.<br>
[[>|tip2]]<br>
[[Back|Title]]
</div>\<div style="text-align: center;">\
HINTS & TIPS<br>
Talk to everyone in town! They can give you advice if you ever get stuck.<br>
[[<|Hints & Tips]] [[>|tip3]]<br>
[[Back|Title]]
</div>\<div style="text-align: center;">\
HINTS & TIPS<br>
Don’t forget to stop by KFSB’s castle every once in a while to beef up your stats and unlock new special abilities!<br>
[[<|tip2]] [[>|tip4]]<br>
[[Back|Title]]
</div>\<div style="text-align: center;">\
HINTS & TIPS<br>
Fight monsters in different areas to get a sense for how much gold and XP they give. Some locations are great for earning more XP while others dish out more gold.<br>
[[<|tip3]] [[>|tip5]]<br>
[[Back|Title]]
</div>\<div style="text-align: center;">\
HINTS & TIPS<br>
If you’re REALLY getting screwed by tough monsters, try fighting the wimpy monsters near Irongate. Even though they don’t give much XP or treasure, you can still collect bonus rewards for defeating 5 enemies in a row- and those rewards can boost your stats significantly!<br>
[[<|tip4]] [[>|tip6]]<br>
[[Back|Title]]
</div>\<div style="text-align: center;">\
HINTS & TIPS<br>
Make sure to stock up on healing potions!<br>
[[<|tip5]] [[>|tip7]]<br>
[[Back|Title]]
</div>\<div style="text-align: center;">\
HINTS & TIPS<br>
Spells don’t regenerate unless you die or spend the night at a tavern, so use your spells wisely.<br>
[[<|tip6]]<br>
[[Back|Title]]
</div>\<div style="text-align: center;">\
You enter the final chamber and discover the legendary Rune Sword of the dwarves! Take this to the dwarf king so he can clear a path to the north.<br>
[[Continue|Stonehammer Keep]]
<<set $dwarfking += 1>>\
<<set $inventory.push("Rune Sword")>>\
<<set $quests.push("<s>Find the Rune Sword</s>")>>\
<<set $quests.push("Open the passage to the north")>>\
<<set $quests.delete("Find the Rune Sword")>>\
<<set $kingscrypts = 0>>\
</div>\<div style="text-align: center;">\
The dwarf king uses the magic of the Rune Sword to clear the rubble blocking the northern passageway. Now you can pass through at any time!<br>
[[Continue|northopennow]]
</div>\
<<set $dwarfking += 1>>\<div style="text-align: center;">\
DWARF KING:
Listen, I know this may sound a wee bit funny since yer not a dwarf or a kingly heir, but this is a JRPG after all... and ye went through all that grindin' to help us... so I want ye to have this. Besides, if it was me playin' I know I'd feel a bit cheated if I didn't get to swing the Rune Sword at least once!<br>
[[Continue|obtainedrunsword]]
</div>\<div style="text-align: center;">\
Obtained the Rune Sword!<br>
Sword damage increased:
$sword → 39<br>
<<set $weap = "Rune Sword">>\
<<set $sword = 39>>\
<<set $atkpwr = $sword + $atk>>\
<<set $inventory.delete("Rune Sword")>>\
[[Continue|Stonehammer Keep]]
</div>\<<if visited("thesight")>>\
<div style="text-align: center;">\
Location: Frozen North
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
You are standing in the Frozen North. Where do you want to go?<br>
[[Sunrise Peak]]
[[Castle Wolfgarde]]
[[Return to the dwarf kingdom|Stonehammer Keep]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\
<<else>>\
<div style="text-align: center;">\
You pass through the dwarf passageway and arrive in the Frozen North. The sight before you is horrible...<br>
[[Continue|thesight]]
</div>\
<<set $quests.push("<s>Open the passage to the north</s>")>>\
<<set $quests.push("Kick Shyfter butt")>>\
<<set $quests.delete("Open the passage to the north")>>\
<</if>>\<div style="text-align: center;">\
The snow is soaked with blood. Barbarian corpses have been strewn about, mangled beyond recognition. Just then you realize one of them is still alive... barely. It's Kung Fu Space Barbarian!<br>
[[Continue|kfsbsdeath]]
</div>\<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
(cough) Holy crap... you look totally awesome. When I left you were just a Level 1 wimpling, but now... (cough) You look like a true hero.<br>
[[Continue|barbdead]]
</div>\
<<set $hisyours = "your">>\
<<set $kungsyours = "your">>\<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
Something terrible has happened... we came here to fight werewolves, but it was a trap. The Shyfters... they're back. (cough) ALL of them. The ones from the previous games... they've somehow managed to break free. Skagg, Kaldaris, Vortex, Lord Hawk... heck, even that witch from Moonbright came back...<br>
[[Continue|kfsbtoyou]]
</div>\<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
My time here is at an end... (cough) It's time for a new hero to watch over Azmar. Take the keys to my magic castle. It's yours now. There's a secret room on the top level- open it when you're ready.<br>
[[Continue|kfsbisdead]]
</div>\<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
My legend has been written. Now it's time to write your own. Take this map. Seek out the Shyfters and kick their butts. Become the hero Azmar needs! I just have one last piece of advice. Come closer...<br>
[[Continue|advicefinale]]
</div>\<div style="text-align: center;">\
KUNG FU SPACE BARBARIAN:
Bacon pizza tastes amazing, but you'll poop in your pants if you eat too much.<br>
[[Continue|thendofkung]]
</div>\<div style="text-align: center;">\
Kung Fu Space Barbarian dies. His body dissolves into cosmic dust and he becomes one with the universe.<br>
[[Continue|obtainedthemap]]
</div>\<div style="text-align: center;">\
Obtained the World Map! Return to your castle to read the world map at any time.<br>
[[Continue|frozennorth]]
<<set $inventory.push("World Map")>>\
</div>\<div style="text-align: center;">\
Location: Frozen North
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
You are standing in the Frozen North. Where do you want to go?<br>
[[Sunrise Peak]]
[[Castle Wolfgarde]]
[[Return to the dwarf kingdom|Stonehammer Keep]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if visited("arcadecab")>>\
You are standing in the secret room. What do you want to do?<br>
[[View world map]]
[[Create new items]]
[[Visit the secret store]]
[[Back|Magic shop]]
<<else>>\
You enter a secret room in the top floor of the castle. This room is filled with old video game consoles, retro arcade cabinets, book shelves stacked with RPG modules and character sheets, and a mini fridge stuffed to the brim with frozen pizza.<br>
[[Continue|arcadecab]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $beardedlady gte 1>>\
BEARDED LADY:
How many more quests do you think I have for you? Can't you see I'm trying to eat my pizza? Go away!<br>
[[Continue|dwarfgossip]]
<<else>>\
BEARDED LADY:
Oh, it was disgusting! A group of dirty little imps came prancing through here earlier. They went scuttling down into the old king's crypts! Nasty little blighters.<br>
<<set $kingscrypts = 1>>\
<<set $beardedlady = 1>>\
[[Continue|dwarfgossip]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $skagg == 0>>\
You already cleared this area!<br>
<<back "Back">>
<<else>>\
Sunrise Peak is the highest mountain in all of Azmar. The Shyfter Skagg has built his fortress at the top.<br>
[[Continue|standinginsunrise]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $rotcat == 0>>\
You already cleared this area!<br>
<<back "Back">>
<<else>>\
Castle Wolfgarde was once the fortress of Jade Wolf, the legendary spirit protector of the north. However, the castle is now occupied by an army of werewolves being led by a fearsome new Shyfter named Rotcat.<br>
[[Continue|standinginwolfgarde]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $craftmats gte 1>>\
What do you want to make?<br>
[[Hero Sword]]
[[Hero Shield]]
[[Hero Helm]]
[[Hero Armor]]
[[Back|Enter the secret room]]
<<else>>\
You don't have any crafting materials!<br>
[[Back|Enter the secret room]]
<</if>>\
</div>\<div style="text-align: center;">\
In the far corner of the room you notice a small forge. There is a note attached to it: "Yo! Glad you found the secret room. There are 3 extra stat points and a new ability point hidden in the closet. I never got around to using them myself. I figure they might come in handy, though! (turn over)"<br>
[[Continue|turnover]]
<<set $stats += 3>>\
<<set $abilitypoints += 1>>\
</div>\<div style="text-align: center;">\
"This little forge is where I create all my coolest stuff. If you're forging your own legend, then you might as well forge your own awesome legendary weapons and armor too, right? (get it?? FORGE!?!? teehee!) If you come across any crafting materials on your travels, bring them back here and you'll be able to create the best gear in the game. Stay awesome! <3 KFSB"<br>
[[Continue|lairisyours]]
</div>\<div style="text-align: center;">\
You grab the stat and ability points from the closet. This room is yours now. What do you want to do?<br>
[[View world map]]
[[Create new items]]
[[Go downstairs|Magic shop]]
</div>\<div style="text-align: center;">\
<<if visited("whatnow")>>\
You have defeated all 5 Shyfters and the witch. Only one challenge remains... you must defeat the Star King and put an end to the Shyfters for good. Are you ready to proceed to the final battle?<br>
[[Yes|finalbattlestart]]
[[No|Enter the secret room]]
<<else>>\
This map shows the location of all the Shyfters. Touch a point on the map and you'll instantly be teleported there!<br>
<table style="width:100%">
<tr>
<th>Location</th>
<th>Shyfter</th>
<th>Reward</th>
</tr>
<tr>
<td>[[Moonbright]]</td>
<td>Snaggletooth</td>
<td>Crafting Materials</td>
</tr>
<tr>
<td>[[Edgewater]]</td>
<td>Vortex</td>
<td>Crafting Materials</td>
</tr>
<tr>
<td>[[Sunrise Peak]]</td>
<td>Skagg</td>
<td>Crafting Materials</td>
</tr>
<tr>
<td>[[Festering Swamps]]</td>
<td>Lord Hawk</td>
<td>Crafting Materials</td>
</tr>
<tr>
<td>[[Castle Wolfgarde]]</td>
<td>Rotcat</td>
<td>Spiked Armor</td>
</tr>
<tr>
<td>[[Mon Magma]]</td>
<td>Kaldaris</td>
<td>Hydra's Egg</td>
</tr>
</table>
[[Back|Enter the secret room]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if visited("whatnow")>>\
Shattershard is a better weapon than the Hero Sword. Don't bother forging this now!<br>
[[Back|Create new items]]
<<else>>\
The Hero Sword will increase your sword damage:
$sword → 50<br>
[[Craft Hero Sword]]
[[Back|Create new items]]
<</if>>\
</div>\<div style="text-align: center;">\
The Hero Shield will increase your shield defense:
$sd → 25<br>
[[Craft Hero Shield]]
[[Back|Create new items]]
</div>\<div style="text-align: center;">\
The Hero Helm will increase your helmet defense:
$helm → 25<br>
[[Craft Hero Helm]]
[[Back|Create new items]]
</div>\<div style="text-align: center;">\
The Hero Armor will increase your armor defense:
$arm → 50<br>
[[Craft Hero Armor]]
[[Back|Create new items]]
</div>\<div style="text-align: center;">\
<<if $sword == 50>>\
You already have that!<br>
[[Back|Create new items]]
<<else>>\
<<set $craftmats -= 1>>\
<<set $weap = "Hero Sword">>\
<<set $sword = 50>>\
<<set $atkpwr = $sword + $atk>>\
You crafted the Hero Sword!<br>
Attack power: $atkpwr<br>
[[Continue|Enter the secret room]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sd == 25>>\
You already have that!<br>
[[Back|Create new items]]
<<else>>\
<<set $craftmats -= 1>>\
<<set $shield = "Hero Shield">>\
<<set $sd = 25>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You crafted the Hero Shield!<br>
Total defense: $def<br>
[[Continue|Enter the secret room]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm == 25>>\
You already have that!<br>
[[Back|Create new items]]
<<else>>\
<<set $craftmats -= 1>>\
<<set $helmet = "Hero Helm">>\
<<set $helm = 25>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You crafted the Hero Helm!<br>
Total defense: $def<br>
[[Continue|Enter the secret room]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm == 50>>\
You already have that!<br>
[[Back|Create new items]]
<<else>>\
<<set $craftmats -= 1>>\
<<set $armor = "Hero Armor">>\
<<set $arm = 50>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You crafted the Hero Armor!<br>
Total defense: $def<br>
[[Continue|Enter the secret room]]
<</if>>\
</div>\<div style="text-align: center;">\
Gold: $gold
Welcome to the secret store! What do you want to buy?<br>
<table style="width:100%">
<tr>
<th>Item</th>
<th>Attribute</th>
<th>Gold</th>
</tr>
<tr>
<td>[[Silver Armor]]</td>
<td>$arm → 25</td>
<td>9000</td>
</tr>
<tr>
<td>[[Dragon Armor]]</td>
<td>$arm → 29</td>
<td>16000</td>
</tr>
<tr>
<td>[[Silver Helmet]]</td>
<td>$helm → 18</td>
<td>28000</td>
</tr>
<tr>
<td>[[Cursed Shield]]</td>
<td>???</td>
<td>666</td>
</tr>
<tr>
<td>[[Dragon Shield]]</td>
<td>$sd → 20</td>
<td>36000</td>
</tr>
<tr>
<td>[[Relic Blade]]</td>
<td>$sword → 42</td>
<td>52000</td>
</tr>
<tr>
<td>[[Tribal Pendant]]</td>
<td>+100 HP</td>
<td>55000</td>
</tr>
<tr>
<td>[[Spiky Wristband]]</td>
<td>+20 defense</td>
<td>99000</td>
</tr>
<tr>
<td>[[Skull Ring]]</td>
<td>+25 attack</td>
<td>150000</td>
</tr>
<tr>
<td>[[Barbarian King's Crown]]</td>
<td>+69 all stats</td>
<td>690000</td>
</tr>
</table>
[[Leave|Enter the secret room]]
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Tribal Pendant") gte 0>>\
You already have one of those!<br>
[[Continue|Visit the secret store]]
<<else>>\
<<if $gold gte 55000>>\
<<set $gold -= 55000>>\
<<set $hp += 100>>\
<<set $maxHP += 100>>\
<<set $inventory.push("Tribal Pendant")>>\
You buy a Tribal Pendant. Max HP increased by 100!<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Visit the secret store]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Spiky Wristband") gte 0>>\
You already have one of those!<br>
[[Continue|Visit the secret store]]
<<else>>\
<<if $gold gte 99000>>\
<<set $gold -= 99000>>\
<<set $basedef += 20>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $inventory.push("Spiky Wristband")>>\
You buy a Spiky Wristband. Defense increased by 20!<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Visit the secret store]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Skull Ring") gte 0>>\
You already have one of those!<br>
[[Continue|Visit the secret store]]
<<else>>\
<<if $gold gte 150000>>\
<<set $gold -= 150000>>\
<<set $atk += 25>>\
<<set $atkpwr = $sword + $atk>>\
<<set $inventory.push("Skull Ring")>>\
You buy a Skull Ring. Attack power increased by 25!<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Visit the secret store]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
<<if $inventory.indexOf("Barbarian King's Crown") gte 0>>\
You already have one of those!<br>
[[Continue|Visit the secret store]]
<<else>>\
<<if $gold gte 690000>>\
<<set $gold -= 690000>>\
<<set $hp += 69>>\
<<set $maxHP += 69>>\
<<set $atk += 69>>\
<<set $atkpwr = $sword + $atk>>\
<<set $mp += 69>>\
<<set $maxmp += 69>>\
<<set $basedef += 69>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
<<set $inventory.push("Barbarian King's Crown")>>\
You buy a Barbarian King's Crown. All stats increased by 69! Holy crap, how did you manage to afford this thing? I couldn't even bring myself to grind that hard while I was writing the stinkin' game! You, my friend, are an absolute champion.<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold!<br>
[[Continue|Visit the secret store]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
You teleport to Moonbright.<br>
[[Continue|standinginmoonbright]]
</div>\<div style="text-align: center;">\
<<if $vortex == 0>>\
You already cleared this area!<br>
[[Back|View world map]]
<<else>>\
You teleport to Edgewater.<br>
[[Continue|standinginedgewater]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $lordhawk == 0>>\
You already cleared this area!<br>
[[Back|View world map]]
<<else>>\
You teleport to the Festering Swamps.<br>
[[Continue|standinginfestering]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $kaldaris == 0>>\
You already cleared this area!<br>
[[Back|View world map]]
<<else>>\
You teleport to Mon Magma.<br>
[[Continue|standinginmonmag]]
<</if>>\
</div>\<div style="text-align: center;">\
Location: Moonbright
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
You are standing in the middle of a dusty road. Where do you want to go?<br>
[[Blacksmith|moonblack]]
[[Marketplace|markety]]
[[Tavern|moontav]]
[[Old barn]]
[[Cornfields]]
[[Return to Irongate|maintown]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\<div style="text-align: center;">\
Location: Edgewater
<table style="width:100%">
<tr>
<td>[[Stats|Character]]</td>
<td>[[Spells|spells]]</td>
</tr>
<tr>
<td>[[Gear]]</td>
<td>[[Quests]]</td>
</tr>
</table>
Edgewater is a bustling port town filled with shops, people, and entertainment. Where do you want to go?<br>
[[Blacksmith|edgeweapons]]
[[Marketplace|edgeitems]]
[[Tavern|edgeinn]]
[[The docks]]
[[Return to Irongate|maintown]]
<<if $teleport gte 1>>\
[[Teleport|Teleport to another location]]
<</if>>\
</div>\<div style="text-align: center;">\
The smell of death lingers on the air. You'll need to defeat 5 monsters in a row before you can reach the Grey Keep and battle Lord Hawk. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 116>>\
</div>\<div style="text-align: center;">\
You enter the dank caverns of Sunrise Peak. You'll need to defeat 5 monsters in a row before battling the big bad Shyfter waiting at the top. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 20>>\
</div>\<div style="text-align: center;">\
You enter the crumbling stone fortress. You'll need to defeat 5 monsters in a row before battling the big bad Shyfter waiting at the top. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 16>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 25>>\
This item is useless to you!<br>
[[Back|Visit the secret store]]
<<else>>\
Silver armor will increase your armor:
$arm → 25
Buy silver armor for 9000 gold?<br>
[[Buy|buysilverarm]]
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $arm gte 29>>\
This item is useless to you!<br>
[[Back|Visit the secret store]]
<<else>>\
Dragon armor will increase your armor:
$arm → 29
Buy dragon armor for 16000 gold?<br>
[[Buy|buydragonarm]]
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $helm gte 18>>\
This item is useless to you!<br>
[[Back|Visit the secret store]]
<<else>>\
A silver helmet will increase your helmet defense:
$helm → 18
Buy a silver helmet for 28000 gold?<br>
[[Buy|buysilverhelm]]
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
This shield is cursed. Are you sure you want it?<br>
<<if $shield == "Cursed Shield">>\
You already have that!<br>
[[Back|Visit the secret store]]
<<else>>\
[[Buy|buycursedsheild]]
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sd gte 20>>\
This item is useless to you!<br>
[[Back|Visit the secret store]]
<<else>>\
A dragon shield will increase your shield defense:
$sd → 20
Buy a dragon shield for 36000 gold?<br>
[[Buy|buydragonsheild]]
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $sword gte 42>>\
This item is useless to you!<br>
[[Back|Visit the secret store]]<br>
<br>
<<else>>\
A Relic Blade will increase your sword damage:
$sword → 42
Buy a Relic Blade for 52000 gold?<br>
[[Buy|buyrelicsword]]
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
DWARF MERCHANT:
Blimey! Can you imagine how much gold ye'd find in a treasure cave?<br>
[[Continue|dwarfgossip]]
</div>\<div style="text-align: center;">\
A werewolf attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 300 + random(30,50)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(75,90)>>\
<<set $xpgain = random(9000,12000) * $level>>\
<<set $treasure = random(140,195) * $level>>\
</div>\<div style="text-align: center;">\
You climb to the top of Castle Wolfgarde and step out onto the battlements. Rotcat is waiting for you.<br>
[[Continue|catfight]]
</div>\<div style="text-align: center;">\
ROTCAT:
Kung Fu Space Barbarian sent you to kill the Shyfters? Ha! You are weak. I'll rip your spine out of your back and beat you to death with it!<br>
[[Fight Rotcat|startfight]]
<<if $woodenstake == 1>>\
[[Stab Rotcat with the wooden stake]]
<</if>>\
</div>\
<<set $state = 17>>\
<<set $ehp = 4000>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(102000,104000) * $level>>\
<<set $treasure = random(1400,1950) * $level>>\<div style="text-align: center;">\
You smash the wooden stake into Rotcat's chest! The Shyfter's HP and attack decrease dramatically!<br>
[[Continue|startfight]]
</div>\
<<set $ehp -= 2500>>\
<<set $eatk = random(85,90)>>\<div style="text-align: center;">\
<<set $rotcat = 0>>\
<<set $Shyfters += 1>>\
<<if $arm gte 36>>\
<<set $gold += 100000>>\
Rotcat screams. The beast's fur melts off. The Shyfter dies. You found the +36 Spiked Armor! Too bad, your armor is already better than this. Armor converted into 100,000 gold!<br>
[[Continue|nextrot]]
<<else>>\
Rotcat screams. The beast's fur melts off. The Shyfter dies. You found the +36 Spiked Armor! Armor increased:
$arm → 36<br>
<<set $armor = "Spiked Armor">>\
<<set $arm = 36>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
[[Continue|nextrot]]
<</if>>\
</div>\<<if $Shyfters gte 6>>\
<div style="text-align: center;">\
Suddenly the clouds above you split open and a ball of fire shoots down from the sky. It smashes into the ground nearby. When the smoke clears you see a beautiful woman in a hooded cloak walking towards you. She is carrying a huge, jagged sword.<br>
[[Continue|shattershard]]
</div>\
<<else>>\
<div style="text-align: center;">\
With the Shyfter defeated, you return to your magic castle to plan out your next move.<br>
[[Continue|Magic shop]]
</div>\
<</if>>\<div style="text-align: center;">\
SILVER WOLF:
I saw visions of you fighting the Shyfters. Even across the vast gulfs of space and time I felt Lord Hawk's spirit dissipate once again. I worked as hard as I could, and it seems like I'm just in time. Allow me to explain.<br>
[[Continue|silverwolf]]
</div>\<div style="text-align: center;">\
SILVER WOLF:
My name is Silver Wolf. I was once a protector of Azmar, but my power was corrupted by the Shyfter who calls himself Lord Hawk. He cursed me with a magic sword called the Grey Blade, but its magic is broken now.<br>
[[Continue|brokenmagic]]
</div>\<div style="text-align: center;">\
SILVER WOLF:
I was eager to atone for my sins, and so I took the Grey Blade far from Azmar and cast it into the fiery center of a dying star. But the Grey Blade was not destroyed. Though the sword shattered, the fragments of the blade were re-made in the power of the light. What was once a sword of pure Evil has now become a sword of pure Good.<br>
[[Continue|newblade]]
</div>\<div style="text-align: center;">\
SILVER WOLF:
I infused the last of my magic into this sword. Shyfters will re-form after a thousand years if they're killed by normal means, but this new sword- Shattershard- is powerful enough to disperse Shyfter magic for good. I want you to take this.<br>
[[Continue|starking]]
</div>\<div style="text-align: center;">\
SILVER WOLF:
The Star King is coming. It is through his dark magic that the Shyfters are able to be reborn over and over again. Slay him and put an end to the Shyfters once and for all!<br>
[[Continue|obtainedshattershard]]
</div>\<div style="text-align: center;">\
Silver Wolf hands you the sword and disappears. Obtained SHATTERSHARD! With this weapon, you can kill the Star King and destroy the Shyfters once and for all. Sword damage increased:<br>
$sword → 200<br>
[[Continue|magicboost]]
<<set $weap = "Shattershard">>\
<<set $sword = 200>>\
<<set $atkpwr = $sword + $atk>>\
</div>\<div style="text-align: center;">\
As you grip the blade, you feel its magic rush through your body. You suddenly become an EPIC HERO! +500 HP! +100 attack! +100 defense! +100 MP!<br>
[[Continue|whatnow]]
<<set $hp += 500>>\
<<set $maxHP += 500>>\
<<set $atk += 100>>\
<<set $basedef += 100>>\
<<set $mp += 100>>\
<<set $maxmp += 100>>\
<<set $atkpwr = $sword + $atk>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
</div>\<div style="text-align: center;">\
You teleport back to your magic castle. You can now access the final battle with the Star King through the World Map.<br>
[[Continue|Magic shop]]
</div>\<div style="text-align: center;">\
You arrive at the top of Sunrise Peak. Skagg is waiting for you.<br>
[[Continue|skaggcatfight]]
</div>\<div style="text-align: center;">\
A spectre attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 250 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(85,90)>>\
<<set $xpgain = random(5000,9000) * $level>>\
<<set $treasure = random(340,695) * $level>>\
</div>\<div style="text-align: center;">\
An evil slime attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 450 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(100,130)>>\
<<set $xpgain = random(99000,150000) * $level>>\
<<set $treasure = random(740,995) * $level>>\
</div>\<div style="text-align: center;">\
An ice golem attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 250 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(105,120)>>\
<<set $xpgain = random(9000,11000) * $level>>\
<<set $treasure = random(340,695) * $level>>\
</div>\<div style="text-align: center;">\
A yeti attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 350 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(80,100)>>\
<<set $xpgain = random(9900,12900) * $level>>\
<<set $treasure = random(340,695) * $level>>\
</div>\<div style="text-align: center;">\
SKAGG:
You thought the other boss fights were hard? Then you're in for a world of hurt... for I have no weaknesses! Prepare to die, little wimpling!<br>
[[Fight Skagg|startfight]]
</div>\
<<set $state = 21>>\
<<set $ehp = 10000>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(155,180)>>\
<<set $xpgain = random(102100,114000) * $level>>\
<<set $treasure = random(3400,6950) * $level>>\<div style="text-align: center;">\
<<set $skagg = 0>>\
<<set $Shyfters += 1>>\
<<set $craftmats += 1>>\
Skagg howls with rage. The beast's tusks fall off. The Shyfter dies. You found Crafting Materials!<br>
[[Continue|nextrot]]
</div>\<div style="text-align: center;">\
<<if $gold gte 9000>>\
<<set $gold -= 9000>>\
<<set $armor = "Silver armor">>\
<<set $arm = 25>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought silver armor! Total defense: $def<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 16000>>\
<<set $gold -= 16000>>\
<<set $armor = "Dragon armor">>\
<<set $arm = 29>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought dragon armor! Total defense: $def<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 28000>>\
<<set $gold -= 28000>>\
<<set $helmet = "Silver Helmet">>\
<<set $helm = 18>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a silver helmet! Total defense: $def<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 52000>>\
<<set $gold -= 52000>>\
<<set $weap = "Relic Blade">>\
<<set $sword = 42>>\
<<set $atkpwr = $sword + $atk>>\
You bought a Relic Blade!<br>
Attack power: $atkpwr<br>
[[Continue|Visit the secret store]]<br>
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Visit the secret store]]<br>
<br>
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 666>>\
<<set $gold -= 666>>\
<<set $shield = "Cursed Shield">>\
<<set $sd = 1>>\
<<set $basedef = 1>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a cursed shield! Base defense dropped to 1. Shield defense dropped to 1. Total defense: $def<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $gold gte 36000>>\
<<set $gold -= 36000>>\
<<set $shield = "Dragon Shield">>\
<<set $sd = 20>>\
<<set $def = $basedef + $helm + $arm + $sd>>\
You bought a dragon shield! Total defense: $def<br>
[[Continue|Visit the secret store]]
<<else>>\
You don't have enough gold to buy that!<br>
[[Back|Visit the secret store]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $snaggletooth == 1>>\
The building is empty.<br>
[[Back|standinginmoonbright]]
<<else>>\
BLACKSMITH:
Thanks for saving us, hero! I'm afraid I won't have any new items in my shop for quite some time now, but I can offer you some advice: wear the ring with a skeleton crest when you battle Lord Hawk!<br>
[[Continue|standinginmoonbright]]
<</if>>\
</div>\<div style="text-align: center;">\
<<if $snaggletooth == 1>>\
The building is empty.<br>
[[Back|standinginmoonbright]]
<<else>>\
<<if visited("merchantthanks")>>\
MERCHANT:
That old witch will never turn anyone into a scarecrow ever again!<br>
[[Continue|standinginmoonbright]]
<<else>>\
MERCHANT:
You showed that witch who's boss! As thanks for saving our town, I want you to have this.<br>
[[Continue|merchantthanks]]
<</if>>\
<</if>>\
</div>\<div style="text-align: center;">\
Welcome to the tavern. You can spend the night for 48 gold coins. What would you like to do?<br>
[[Rest|moonsleep]]
[[Eat|eat35]]
[[Gossip|moongossip]]
[[Leave|standinginmoonbright]]
</div>\<div style="text-align: center;">\
<<if visited("invfarm")>>\
Nothing more to be found here.<br>
[[Back|standinginmoonbright]]
<<else>>\
You investigate the farmhouse.<br>
[[Continue|invfarm]]
<</if>>\
</div>\<div style="text-align: center;">\
The cornfields are filled with scarecrows. Where do you want to go?<br>
[[The spooky forest]]
[[Return to Moonbright|standinginmoonbright]]
</div>\<div style="text-align: center;">\
<<set $inventory.push("Lucky Horseshoe")>>\
<<set $hp += 7>>\
<<set $maxHP += 7>>\
<<set $mp += 7>>\
<<set $maxmp += 7>>\
Obtained the Lucky Horseshoe! +7 HP! +7 MP!<br>
[[Continue|standinginmoonbright]]
</div>\<<if $gold gte 48>>\
<<set $gold -= 48>>\
<<set $hp = $maxHP>>\
<<set $mp = $maxmp>>\
<div style="text-align: center;">\
You spend the night at the inn. HP and MP restored!<br>
[[Continue|moontav]]<br>
<br>
</div>\
<<else>>\
<div style="text-align: center;">\
You don't have enough gold!<br>
[[Continue|moontav]]<br>
<br>
</div>\
<</if>>\<div style="text-align: center;">\
Buy a slice of healing pizza for 10 coins?<br>
[[Yes|yespizza4]]
<<back "No">>
</div>\<div style="text-align: center;">\
Who do you want to talk to?<br>
[[Barbarian wearing a fuzzy hat]]
[[Rey]]
[[Coogan]]
[[Lily]]
[[Back|moontav]]
</div>\<div style="text-align: center;">\
<<if $gold gte 10>>\
<<set $gold -= 10>>\
<<set $pizza += 1>>\
You bought a slice of pizza!<br>
[[Continue|moontav]]
<<else>>\
You don't have enough gold!<br>
[[Continue|moontav]]
<</if>>\
</div>\<div style="text-align: center;">\
BARBARIAN WEARING A FUZZY HAT:
I left the Frozen North to open my own casino. I thought Moonbright would be a good spot, but almost everyone in town has been turned into a scarecrow!<br>
[[Continue|moongossip]]
</div>\<div style="text-align: center;">\
REY:
Last time the witch came to Moonbright I was 5. That was over 30 years ago now.<br>
[[Continue|moongossip]]
</div>\<div style="text-align: center;">\
COOGAN:
Kung Fu Space Barbarian saved our town from Snaggletooth last time. He saved my girls and destroyed the witch with a silver mirror.<br>
[[Continue|moongossip]]
</div>\<div style="text-align: center;">\
LILY:
Dad's very old now. He likes to tell stories about how Kung Fu Space Barbarian saved me and Rey from the witch all those years ago. I can't believe she came back again...<br>
[[Continue|moongossip]]
</div>\<div style="text-align: center;">\
The house is old and run down, but you find a cracked silver mirror in one of the bedrooms. Obtained the Silver Mirror!<br>
[[Continue|standinginmoonbright]]
<<set $inventory.push("Silver Mirror")>>\
</div>\<div style="text-align: center;">\
<<if $snaggletooth == 0>>\
You already cleared this area!<br>
[[Back|Cornfields]]
<<else>>\
You enter the spooky forest. You'll need to defeat 5 monsters in a row before battling the evil witch waiting at the end. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 36>>\
<</if>>\
</div>\<div style="text-align: center;">\
An undead deer attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 350 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(5000,19000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
An evil sheep attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 350 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(5000,19000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
A mutated goat attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 350 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(5000,19000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
A killer wasp attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 350 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(5000,19000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
You arrive in a mist-shrouded grove. Snaggletooth the witch is waiting for you.<br>
[[Continue|snagglefight]]
</div>\<div style="text-align: center;">\
SNAGGLETOOTH:
Have you come to be turned into a scarecrow, too? Then allow me to grant your wish!<br>
[[Fight Snaggletooth|startfight]]
<<if visited("invfarm")>>\
[[Use the Silver Mirror]]
<</if>>\
</div>\
<<set $state = 39>>\
<<set $ehp = 6000>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(125,150)>>\
<<set $xpgain = random(102100,114000) * $level>>\
<<set $treasure = random(3400,6950) * $level>>\<div style="text-align: center;">\
<<set $snaggletooth = 0>>\
<<set $Shyfters += 1>>\
<<set $craftmats += 1>>\
Snaggletooth melts into a puddle of goo. You found Crafting Materials!<br>
[[Continue|nextrotx]]
</div>\<div style="text-align: center;">\
You hold up the Silver Mirror! It would probably have an effect if she saw her reflection, but the mirror is broken. You say "screw it" and smash the mirror against the witch's face. It deals significant damage!<br>
[[Continue|startfight]]
<<set $ehp -= 3600>>\
</div>\<<if $Shyfters gte 6>>\
<div style="text-align: center;">\
Suddenly the clouds above your split open and a ball of fire shoots down from the sky. It smashes into the ground nearby. When the smoke clears you see a beautiful woman in a hooded cloak walking towards you. She is carrying a huge, jagged sword.<br>
[[Continue|shattershard]]
</div>\
<<else>>\
<div style="text-align: center;">\
With the witch defeated, you return to Moonbright. The witch's spell has been broken and the scarecrows have turned back into people. You saved the town!<br>
[[Continue|standinginmoonbright]]
</div>\
<</if>>\<div style="text-align: center;">\
Mon Magma is an enormous volcanic fortress. You'll need to defeat 5 monsters in a row before battling the big bad Shyfter waiting at the top. Get ready!<br>
[[Continue|CheckStartState]]
<<set $state = 86>>\
</div>\<div style="text-align: center;">\
This door is locked. You need a key to enter this room.<br>
[[Back|Magic shop]]
</div>\<div style="text-align: center;">\
A dragon attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 550 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(105,120)>>\
<<set $xpgain = random(15000,29000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
A hydra attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 550 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(105,120)>>\
<<set $xpgain = random(25000,29000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
You arrive in the main volcanic chamber. Kaldaris is waiting for you on a platform surrounded by bubbling lava.<br>
[[Continue|kaeldfight]]
</div>\<div style="text-align: center;">\
KALDARIS:
I may look like the weakest Shyfter, but I'm not a pushover! I have the power of dragons!<br>
[[Fight Kaldaris|startfight]]
</div>\
<<set $state = 99>>\
<<set $ehp = 1500>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(225,250)>>\
<<set $xpgain = random(102100,114000) * $level>>\
<<set $treasure = random(4400,8950) * $level>>\<div style="text-align: center;">\
<<set $skaldaris = 0>>\
<<set $Shyfters += 1>>\
<<set $hp += 800>>\
<<set $maxHP += 800>>\
<<set $inventory.push("Hydra Egg")>>\
Kaldaris bursts into flame. The Shyfter is dead. You found a Hydra Egg! HP increased by 800!<br>
[[Continue|nextrot]]
</div>\<div style="text-align: center;">\
A shambling corpse attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 450 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(15000,19000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
A mud zombie attacks!<br>
[[Continue|startfight]]<br>
<br>
<<set $ehp = 450 + random(100,150)>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(15000,19000) * $level>>\
<<set $treasure = random(340,1695) * $level>>\
</div>\<div style="text-align: center;">\
You arrive at the Grey Keep. Lord Hawk is waiting for you on the battlements.<br>
[[Continue|hawkfight]]
</div>\<div style="text-align: center;">\
LORD HAWK:
I'm impressed to see you've made it this far. But you will go no further! I serve as the right hand to the Star King! I am unkillable!<br>
[[Fight Lord Hawk|startfight]]
<<if $inventory.indexOf("Skull Ring") gte 0>>\
[[Use the Skull Ring]]
<</if>>\
</div>\
<<set $state = 137>>\
<<set $ehp = 15000>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(195,320)>>\
<<set $xpgain = random(1052000,1094000) * $level>>\
<<set $treasure = random(19400,19950) * $level>>\<div style="text-align: center;">\
You raise the Skull Ring high above your head. Its power shoots out and nearly kills Lord Hawk!<br>
[[Fight Lord Hawk|startfight]]
</div>\
<<set $ehp = 1>>\<div style="text-align: center;">\
<<set $lordhawk = 0>>\
<<set $Shyfters += 1>>\
<<set $craftmats += 1>>\
Lord Hawk dissolves into into mist. The Shyfter is dead. You found Crafting Materials!<br>
[[Continue|nextrot]]
</div>\<div style="text-align: center;">\
Your castle is destroyed in a sudden explosion! When the dust clears you see the terrifying visage of the Star King standing over you.<br>
[[Continue|kingtaugnt]]
</div>\<div style="text-align: center;">\
BLACKSMITH:
Sorry, friend, but we're closed today. I've got a huge shipment of armor that needs to go out by the end of the month and I'm already behind schedule. Shoo!<br>
[[Continue|standinginedgewater]]
</div>\<div style="text-align: center;">\
<<if visited("thestake")>>\
Don't you have more important things to do than go shopping all day?<br>
[[Continue|standinginedgewater]]
<<else>>\
The marketplace is a bustling bazaar filled with random knick-knacks and doo-dads for sale. Though you could probably spend all day browsing through the trading carts and artisan tents, it'd be a waste of time- there's nothing of use here, and besides, you've got a Shyfter to kill right now, remember?<br>
[[Continue|thestake]]
<</if>>\
</div>\<div style="text-align: center;">\
Welcome to the tavern. You can spend the night for 48 gold coins. What would you like to do?<br>
[[Rest|edgesleep]]
[[Eat|eat35v]]
[[Gossip|edgegossip]]
[[Leave|standinginedgewater]]
</div>\<div style="text-align: center;">\
<<if $vortex == 0>>\
PIRATE:
We're done sailing fer today. Time to spend some gold!<br>
[[Back|standinginedgewater]]
<<else>>\
PIRATE:
Arr! Do ye seek passage to Shipwreck Cove? Captain Edge is about to set sail - ye should join his crew if yer brave and like booty!<br>
[[Sign me up!]]
[[Nah, I don't like booty.|standinginedgewater]]
<</if>>\
</div>\<div style="text-align: center;">\
CRIPPLED MAN:
I used to be a fighter here. People called me The Ox. But then I crossed paths with Silver Wolf... now look at me. I can't even wipe my own butt anymore. I'm lucky she didn't kill me.<br>
[[Continue|edgegossip]]
</div>\<div style="text-align: center;">\
SEXY GIRL:
Greetings! My name is White Lotus. I'm waiting for my master to return. She took the Grey Blade and left Azmar a while ago, but she'll be back any day now. I just know it!<br>
[[Continue|edgegossip]]
</div>\<div style="text-align: center;">\
WEALTHY MERCHANT:
Have you ever taken a sip of blue moon juice? I made my fortune selling that after everyone found out Silver Wolf used a bottle to save White Lotus. Now I'm filthy stinkin' rich!<br>
[[Continue|edgegossip]]
</div>\<div style="text-align: center;">\
PIRATE:
Ahoy, matey! Crashing Gravel's the name and pirating is my game! If yer lookin' fer passage to Shipwreck Cove, ye should speak with Captain Edge on the docks. He's taken back the Red Saber and given his sister her own ship!<br>
[[Continue|edgegossip]]
</div>\<div style="text-align: center;">\
Who do you want to talk to?<br>
[[Crippled man]]
[[Sexy girl]]
[[Gambler|gambl2]]
[[Wealthy merchant]]
[[Pirate]]
[[Back|edgeinn]]
</div>\<<if $gold gte 48>>\
<<set $gold -= 48>>\
<<set $hp = $maxHP>>\
<<set $mp = $maxmp>>\
<div style="text-align: center;">\
You spend the night at the inn. HP and MP restored!<br>
[[Continue|edgeinn]]<br>
<br>
</div>\
<<else>>\
<div style="text-align: center;">\
You don't have enough gold!<br>
[[Continue|edgeinn]]<br>
<br>
</div>\
<</if>>\<div style="text-align: center;">\
PIZZA CHEF:
Curse those Shyfters! They destroyed the cargo ships carrying my pizza supplies! How will I be able to sell pizza without sauce and cheese??<br>
[[Continue|edgeinn]]
</div>\<div style="text-align: center;">\
You're just about to leave the marketplace when you spot a cart filled with shards of wood. A sign overhead reads "Free Wooden Stakes! Perfect for werewolf hunters!"<br>
[[Take a wooden stake]]
[[Leave the marketplace]]
</div>\<div style="text-align: center;">\
You take a wooden stake.<br>
[[Continue|standinginedgewater]]
<<set $woodenstake += 1>>\
<<set $inventory.push("Wooden Stake")>>\
</div>\<div style="text-align: center;">\
You turn away from the cart and head back to the main section of town. The cart filled with free wooden stakes mysteriously vanishes.<br>
[[Continue|standinginedgewater]]
</div>\<div style="text-align: center;">\
GAMBLER:
My girlfriend dumped me for a pirate! I can't believe my bad luck...<br>
[[Continue|edgegossip]]
</div>\<div style="text-align: center;">\
You join the pirates and sail to Shipwreck Cove. This land is haunted, and it is ruled over by an evil Shyfter called Vortex. You'll need to defeat 5 monsters before facing the Shyfter!<br>
[[Continue|CheckStartState]]
<<set $state = 806>>\
</div>\<div style="text-align: center;">\
VORTEX:
My crystal armor is impervious to your weak attacks! You cannot stop me! Mwahahaha!<br>
[[Fight Vortex|startfight]]
</div>\
<<set $state = 117>>\
<<set $ehp = 4000>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(95,120)>>\
<<set $xpgain = random(202000,304000) * $level>>\
<<set $treasure = random(9400,10950) * $level>>\<div style="text-align: center;">\
<<set $vortex = 0>>\
<<set $Shyfters += 1>>\
<<set $craftmats += 1>>\
Vortex bursts into a puddle of water and dies. You found Crafting Materials!<br>
[[Continue|nextrot]]
</div>\<div style="text-align: center;">\
STAR KING:
Foolish hero! Your nightmare is only just beginning! The Shyfters can never be defeated. We will conquer Azmar and the rest of the realms before spreading our evil across the stars! Prepare for annihilation!<br>
[[Fight the Star King|startfight]]
</div>\
<<set $state = 666>>\
<<set $ehp = 39321>>\
<<set $maxehp = $ehp>>\
<<set $eatk = random(400,600)>>\
<<set $xpgain = random(1202000,2304000) * $level>>\
<<set $treasure = random(29400,610950) * $level>>\<div style="text-align: center;">\
You plunge Shattershard into the Star King's chest. The Shyfter's screams echo across space and time. You gasp as the evil Shyfter magic whooshes out of the mortal realm. Darkness gives way to light and the sun rises on the horizon. A new day has dawned, and a new hero has arisen.<br>
[[Continue|endofthegame]]
</div>\<div style="text-align: center;">\
With the Star King defeated, the magic of the Shyfters has been broken. The world is safe once more, and you now stand as a beacon of hope among the ruins of Azmar. Peasants come out of hiding and cheer your name. You are a hero... a true legend of Azmar!<br>
[[THE END!]]
</div>\<<if $header == 1>>\
<div class="myDiv">\
<span class='no'>\
<div style="text-align: center;">\
<<link "Back">><<run Engine.backward()>><</link>> | <<link "Save">><<script>>UI.saves()<</script>><</link>> | [[Restart][state.restart()]]
</div>\
</span>\
</div>
<</if>>\<<run UI.restart()>>\
Too bad, you died.<br>
[[Restart][state.restart()]]